March 2002
Intermediate to advanced
496 pages
8h 51m
English
When you shop around before you code, you have less code to maintain, you benefit from the wisdom of developers who have gone before you, and you can ensure that your own code dovetails with the class you are extending. Every class that you create will inherit from the Object class, and this is a natural place to start shopping for existing code. Figure 26.1 shows the Object class.

Earlier examples in this book have reused most of the behavior available in Object, including the clone(), equals(), and getClass() methods. ...
Read now
Unlock full access