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 29
... method clone has no parameters and should return a copy of the calling object . The returned object should have identical data to that of the calling object , but it nor- mally should be ... clone method for the DiscountSale Polymorphism 435.
Walter J. Savitch. L Pitfall THE CLONE METHOD IS PROTECTED IN Object When defining the copy constructor and so the clone method for our generic linked list ( Display 14.8 ) , we would have liked to have cloned the data in the list being ...
... clone ( ) ) ; Now let's return to our discussion of the method copyOf in which we could not use the inherited method clone . If the inherited method clone could be invoked in justATest , why can't it be invoked in the method copyOf , as ...
Contents
Objects and Methods | 3 |
Class Loader + | 10 |
Concatenation of Strings | 34 |
Copyright | |
80 other sections not shown