Introduction to OOP
Chapter 5: Messages Instances and Initialization:
In Smalltalk (and Objective-C) classes are just objects, instances of class
is just a message given to a class object. If we want to create constructors, where do we put them?
They can't be part of the collection of messages of
of the class, since we don't yet have an instance.
They can't be part of the messages understood by class
, since not all classes have the same constructor message.
Where do we put the behavior for individual class instances?
, Slide 12