Squeak Flashcards
Where is the method == implemented?
ProtoObject
Where is the method = first defined?
in Object
What copy methods exist in squeak?
shallowCopy
twoLevelCopy - shallow copy on each field
deepCopy
copy - either shallow or deep
postCopy - By overriding postCopy one can make copies of
members that must not be shared.
do all objects in squeak have ref semantics?
yes. except SmallInteger and ByteSymbol.
What message is sent when a method isn’t found?
doesNotUnderstand
What’s the difference between isMemberOf and isKindOf?
isKindOf also includes inheriting classes.
What are instance variables?
defined in the class.
What are class variables?
defined in the meta-class Like static variables in C++/Java
What are Class-Instance Variables?
Instance variables for the class object.
Where is ‘new’ first defined?
Behaviour
Who overrides ‘new’?
Meta-classes
How do we make sure that every meta-class is a singleton?
we override new in Metaclass