Introduction to OOP: Chapter 8: The Solitaire Game
[next]
[previous]
[audio]
[real]
[text]
Benefits of Inheritance
By using the inherited default behavior, only a small number of
the possible methods must actually be implemented.
| CardPile | SuitPile | DeckPile | DiscardPile | TableauPile
|
includes | X | | | | X
|
canTake | X | X | | | X
|
addCard | X | | | X |
|
display | X | | | | X
|
select | X | | X | X | X
|
Intro OOP, Chapter 8, Slide 15a