From 38d88b6fef50688074099626b9d3e4c0fec22dba Mon Sep 17 00:00:00 2001 From: eiffel-org Date: Mon, 23 Jan 2023 08:53:11 +0000 Subject: [PATCH] Updated wikipage I2E: Classes. (Signed-off-by:jocelyn). git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@2378 abb3cda0-5349-4a8f-a601-0c33ac3a8c38 --- .../eiffel/Tutorials/invitation-eiffel-i2e/i2e-classes.wiki | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/documentation/22.12/eiffel/Tutorials/invitation-eiffel-i2e/i2e-classes.wiki b/documentation/22.12/eiffel/Tutorials/invitation-eiffel-i2e/i2e-classes.wiki index 5862ca91..9db7c6ce 100644 --- a/documentation/22.12/eiffel/Tutorials/invitation-eiffel-i2e/i2e-classes.wiki +++ b/documentation/22.12/eiffel/Tutorials/invitation-eiffel-i2e/i2e-classes.wiki @@ -1,4 +1,4 @@ -[[Property:modification_date|Mon, 23 Jan 2023 08:51:31 GMT]] +[[Property:modification_date|Mon, 23 Jan 2023 08:53:11 GMT]] [[Property:publication_date|Mon, 23 Jan 2023 08:51:31 GMT]] [[Property:title|I2E: Classes]] [[Property:weight|-11]] @@ -94,7 +94,7 @@ end -- ACCOUNT Let us examine the features in sequence. The do ... end distinguishes routines from attributes. So here the class has implemented balance as an attribute, although, as noted, a function would also have been acceptable. Feature owner is also an attribute. -The language definition guarantees automatic initialization, so that the initial balance of an account object will be zero after a creation instruction. Each type has a default initial value: zero for INTEGER and REAL, false for BOOLEAN, null character for CHARACTER, and a void reference for reference types. The class designer may also provide clients with different initialization options, as will be seen below in a revised version of this example. +The language definition guarantees automatic initialization, so that the initial balance of an account object will be zero after a creation instruction. Each type has a default initial value: zero for INTEGER and REAL, false for BOOLEAN, NUL character for CHARACTER, and a void reference for reference types. The class designer may also provide clients with different initialization options, as will be seen below in a revised version of this example. The other public features, withdraw, deposit, open, and may_withdraw are straight-forward routines. The special entity Result, used in may_withdraw, denotes the function result; it is initialized on function entry to the default value of the function's result type. You may only use Result in functions.