next up previous contents
Next: The Introduction of Up: No Title Previous: Procedural Activation of

Class Hierarchies and Single Inheritance

 

Using the framework from the previous section it is possible to model classes, to instantiate classes, and to activate methods in the objects.

In this chapter I will extend the simulation of classes such that the classes can be arranged in hierarchies, and such that inheritance is supported. Only single inheritance is described in this chapter. The single inheritance framework will be generalized to multiple inheritance in chapter gif.

In section gif I describe the basic framework. In section gif I introduce a new representation of objects, which turns out to be particularly useful when we are going to deal with multiple inheritance. Finally, in section gif, I change the interpretation of self , compared with the interpretation which I first introduce in section gif.





Kurt Noermark
Wed Mar 6 10:30:05 MET 1996