Question: Mutator methods allow the application programmer to change the values of data in a class. If we want to let them change the values, why
Mutator methods allow the application programmer to change the values of data in a class. If we want to let them change the values, why didn't we just make those data members public? Why make the mutator at all? What other purpose might a mutator serve?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
