Accessor (or Getter) methods

Certain types of methods are given special names. An accessor, or getter method is a method that is used simply to return an internal data value. Here we have defined two accessor methods, one to return the rank of the card, and one to return the suit.

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