0
accessor method and mutator method
public class CashRegister { private double purchase; private double payment; . . . } ====================================================== which one is an accessor method and a mutator method in this case ?
3 Answers
+ 2
Accessor" and "Mutator" are just fancy names for getters and a setters. A getter, "Accessor", returns a class's variable or its value.
+ 1
They are the methods not variables
0
so whiche one i sa getter and which one is setter in this case?
Hot today
I have made a calculator in which my % (Percentage) not work correctly for 100%50 or 100%20.
3 Votes
Python palindrome challenge.
1 Votes
Java
0 Votes
Number of Ones ( C++ ) question!
1 Votes
For Moderators
1 Votes