A member method that can change the value of a private data member is called …………… .
5 Likes
setter
Reason — Setter/mutator methods allow us to change the value of a private data member as private data members cannot be accessed directly.
Answered By
3 Likes
Java resolves duplicate variable name to ……………. .
A member method that returns the value of a private data member is called …………… .
What is encapsulation?
What does a class encapsulate?