Absolute JavaAbsolute Java offers complete coverage of the Java programming language. Written by Walt Savitch, one of the most widely read authors in the area of programming, it provides all the tools necessary for experienced and novice programmers to master Java, including thorough coverage of the Java Library, complete and fully executable code throughout, sections highlighting programming tips and common pitfalls, and a logical order of coverage of Java topics in order for students to better understand the language. The book is appropriate for introductory courses covering Java, intermediate programming courses introducing Java to students familiar with another language, or as a reference for students and industry professionals. |
From inside the book
Results 1-3 of 36
... MUTATOR METHODS You should always make all instance variables in a class private . But , you may some- times need to do something with the data in a ... mutator methods. Information Hiding and Encapsulation 199 Accessor and Mutator Methods.
... mutator methods defeat the purpose of making instance variables private , but if you look carefully at the mutator methods in Display 4.7 , you will see that the mutator and accessor methods are not equivalent to making the instance ...
... methods in what follows : public String getName ( ) { return name ; } public ... mutator method of the class Date . This is exactly what we discussed in the ... mutator method from the class String to change the name referenced by ...
Contents
Objects and Methods | 3 |
Class Loader + | 10 |
Concatenation of Strings | 34 |
Copyright | |
80 other sections not shown