February 2014
Beginner
1248 pages
62h 25m
English
As you know, a class’s private fields can be manipulated only by its methods. A typical manipulation might be the adjustment of a customer’s bank balance (e.g., a private instance variable of a class BankAccount) by a method computeInterest. Set methods are also commonly called mutator methods, because they typically change an object’s state—i.e., modify the values of instance variables. Get methods are also commonly called accessor methods or query methods.
Read now
Unlock full access