next up previous contents
Next: A Simple Approach Up: No Title Previous: Another Interpretation of

Multiple Inheritance

 

The class hierarchies that I have described in the previous chapter have all been strictly tree-structured. I.e., for every class there exists at most one superclass, and every class inherits properties from at most one direct superclass. In this chapter I will describe how to generalize the framework in such a way that multiple inheritance is accounted for.

First I will describe a simple simulation approach to multiple inheritance. Based on an analysis of the simple approach, I proceed in section gif and gif with a technique, which is based on the object precedence list representation, as introduced in section gif. The chapter is concluded with a description of how to simulate so-called method combination.





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