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.