Example - Playing Card

For example, here is the typical front side, or public face, of a typical CRC card. The playing card abstraction maintains a suit and rank, it must return the face color of the card, whether or not the card is face up or face down, and know how to draw the card.

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