An Accessor or a Getter allows other objects to read the value of a state
It is nearly always implemented as a a function
A Mutator or a Setter allows other objects to change the value of a state
It is usually implemented as a subroutine
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment