Three new functional methods
The three new methods in
Listing 4 are highlighted in boldface.They illustrate three typical method variants.
The first method tells the object to do something - display yourself.
The class's implementation knows how to display the object's data representation.
The second method tells the object to change itself - adjust your month data value up or down by the value of the parameter.