Prototypes and Delegation
The model for object-oriented programming has so far relied mainly on that supported in Smalltalk-80 classes, methods, instances and (hierarchical) inheritance. Every object is an instance of a class. The class manages methods and variables for its instances. Classes form a hierarchy that determines how methods are inherited. New instances are generated by the message new sent to the class. An instance can be copied; this returns a duplicate belonging to the same class.
Unable to display preview. Download preview PDF.