Computer Applications
A member method that can change the value of a private data member is called …………… .
- setter
- getter
- manager
- accessor
Encapsulation & Inheritance in Java
5 Likes
Answer
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