Which of the following is a decent definition for a mutator method?
A. A mutator method is accessible outside of the class
B. A mutator method is often a static method
C. A mutator method often sets the instance variable to a value in its parameter
D. A mutator method is also a getter for the method
Answer:D
Which of the following is a decent definition for a mutator method?
A. A mutator method is accessible outside of the class B. A mutator method is often a static method C. A mutator method often sets the instance variable to a value in its parameter D. A mutator method is also a getter for the method