Exam 1z0-811 All QuestionsBrowse all questions from this exam
Question 26

Which statement is true about a mutator method?

    Correct Answer: D

    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.

Discussion
darius123Option: D

Mutator means setter so is D

MARIAPITAOption: D

D. It can be used to assign data to instance members. I believe