Ask Question

What is the purpose of a mutator?

+4
Answers (1)
  1. 11 February, 17:43
    0
    To change the value of private or protected members.

    Explanation:

    Mutator also known as setters are the member function or method in class that is used to set or change the value of private or protected members. Mutator does not return any values. They are very important in Object Oriented Programming.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “What is the purpose of a mutator? ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers