[first slide]
Introduction to Object Oriented Programming
Chapter 8
The Solitaire Game
Outline
- The Solitaire Game
- The class card
- Features to note
- Card Images
- The Drawing Routine
- Features to Note
- Need Linked List of Cards
- Linked List class
- Features to Note
- Loop Iterators
- Using List Iterators
- The Game
- The class Card Pile
- Features to Note
- Benefits of Inheritance
- The Suit Pile
- Features to Note
- The Deck Pile
- Features to Note
- The Discard Pile
- Features to Note
- The Game Class
- Applet Sequence
Source
Other Material
- Self Assessment Study Guide
- A C++ version of the program
as it appeared in An Introduction to
Object-Oriented Programming (1st edition, Addison-Wesley, 1991).
- A rewriting of the application
from my book Understanding Object-Oriented Programming with Java
(Addison-Wesley, 1998).
- Yet another rewriting in C++, from
my book C++ for Java Programmers, published by Addison-Wesley, 1999.
Intro OOP, Chapter 8, Slide 1