In this chapter we will examine, as a case study, a program that will allow the user to play a version of solitare. Our primary purpose in examining this program is to illustrate some of the benefits of inheritance, to see inheritance in action as it were.
A secondary purpose will be to illustrate the creation of Java applets, which in themselves are also a good illustration of inheritance.
The primary classes for our application will represent cards, card piles, and the game application.