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
includesXX
canTakeXXX
addCardXX
displayXX
selectXXXX

Intro OOP, Chapter 8, Slide 15a