Which statement is true about a mutator method?
Which statement is true about a mutator method?
A mutator method, often referred to as a setter method, is used to assign data to instance members of a class. It is designed to modify the state of an object by changing the values of its instance variables.
Mutator means setter so is D
D. It can be used to assign data to instance members. I believe