Introduction to OOP | Chapter 13: Multiple Inheritance: | next | previous | audio | real | text |
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.