Ask Question
21 May, 05:21

What is the purpose of a mutator?

+3
Answers (1)
  1. 21 May, 07:25
    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?
Get an answer to your question ✅ “What is the purpose of a mutator? ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers