Content deleted Content added
m Standardized spelling of initialise/initialize to British English spelling |
|||
Line 68:
}, {:parent_object_a, :parent_object_b})
</pre>
This code fragment will define a new exemplar called <code>my_object</code> that has two slots (or fields) called <code>slot_a</code> (pre-
===Comparison===
Line 94:
_endmethod
</pre>
It is convention to supply two methods <code>new()</code> (to create a new instance) and <code>init()</code> (to
<pre>
# New method
Line 101:
_endmethod
#
_private _method person.init(name, age)
# Call the parent implementation.
|