The Solitaire Game

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.

[audio] [real] Text to accompany slide2, in Chapter 8 of An Introduction to Object-Oriented Programming