Previous Section  < Free Open Study >  Next Section

Chapter 6 Multiple Inheritance

Heuristic 6.1 If you have an example of multiple inheritance in your design, assume you have made a mistake and then prove otherwise.

Heuristic 6.2 Whenever there is inheritance in an object-oriented design, ask yourself two questions:

  1. Am I a special type of the thing from which I'm inheriting?

  2. Is the thing from which I'm inheriting part of me?

Heuristic 6.3 Whenever you have found a multiple inheritance relationship in an object-oriented design, be sure that no base class is actually a derived class of another base class.

    Previous Section  < Free Open Study >  Next Section