Question OOP-ENC-0052
MediumWhy is a getter that returns a reference to a private mutable Date object a problem?
- A.
Dates cannot be returned
- B.
Callers can change the Date and so change the object's internal state
- C.
Sign up free to see the answer and a step-by-step explanation.