Getter and setter methods
Direct access | Setter access |
---|---|
|
|
|
|
Direct access | Setter / getter access |
---|---|
|
|
No. 88
Implementing getter methods
Q: |
We reconsider the setter / getter implementation in Figure 218, “Implementation change: Minutes only, no hours ”:
Complete the two getter methods' implementation. TipA day's duration is 24 * 60 == 1440 minutes. The |
A: |
|