Anonymous user
Category:Smalltalk: Difference between revisions
→Class Definition
(→Other) |
|||
Line 169:
=== Class Definition ===
<lang smalltalk>
someClass
Line 178:
category: 'for documentation only'.
</lang>
Classes can be anonymous, in most systems, you can "Class new new" to create a new anonymous class and an instance of it (but be aware, that the class should contain enough state to properly specify their instances layout, so usually more info is needed (number and names of instance variables, inheritance etc.)
=== Control Structures ===
|