some questions
DESCRIPTION
Some Questions. Question. Counter class>>new | inst | inst := super new. inst initialize. ^ inst What is the class of inst? Why?. Question (II). Counter>>m ^ self class == super class What is the result of Counter new m. - PowerPoint PPT PresentationTRANSCRIPT
S.Ducasse 1
QuickTime™ and aTIFF (Uncompressed) decompressorare needed to see this picture.
Stéphane [email protected]://www.listic.univ-savoie.fr/~ducasse/
Some Questions
S.Ducasse 2
License: CC-Attribution-ShareAlike 2.0http://creativecommons.org/licenses/by-sa/2.0/
S.Ducasse 3
Question
Counter class>>new
| inst |inst := super new.inst initialize.^ inst
What is the class of inst?Why?
S.Ducasse 4
Counter>>m ^ self class == super class
What is the result of Counter new m
Question (II)