Introduction to OOP Chapter 13: Multiple Inheritance: next previous audio real text

Problem with Redefinition Solution

The redefinition solution is not without cost, however.

Now what happens when we run up against the principle of substitution?


	GraphicalObject * g = new GraphicalCardDeck();
	g->draw(); // opps, doing wrong method!

This problem can be mitigated, but the solution is complex and not perfect.
Intro OOP, Chapter 13, Slide 10