Anonymous user
Add a variable to a class instance at runtime: Difference between revisions
Add a variable to a class instance at runtime (view source)
Revision as of 22:24, 4 January 2010
, 14 years ago→{{header|Smalltalk}}: Questioned incorrect allegation
m (→{{header|Falcon}}: formatting) |
(→{{header|Smalltalk}}: Questioned incorrect allegation) |
||
Line 400:
=={{header|Smalltalk}}==
{{incorrect|Smalltalk|It extends the class (adds a new instance var and new method that will exists even in brand new future instances of that class), not only the particular instance.
asks for adding methods to the class, not the instance.}}
<lang smalltalk>Object subclass: #Monkey
instanceVariableNames: 'aVar'
|