Introduction to OOP | Chapter 4: Classes and Methods: | next | previous | audio | real | text |
class PlayingCard { ... // operations on a playing card public int rank () { return rankValue; } public Suits suit () { return suitValue; } ... private int rankValue; }