Ask Question
15 February, 10:31

What is the purpose of a mutator?

+2
Answers (1)
  1. 15 February, 13:44
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers