[ fromfile: multiple-inheritance.xml id: virtualinheritance ]
In Figure 22.4, GraduateTeachingFellow
inherited more than once from the same base class.
There is another problem with that model: redundancy.
Instances of this multiply inherited class might look like Figure 22.5.
Person
has attributes that should be inherited only once.
virtual
inheritance eliminates the redundancy.
Generated: 2012-03-02 | © 2012 Alan Ezust and Paul Ezust. |