Chapter 6
Using the Object and Class Classes
In This Chapter
Using the toString method
Implementing the equals method
Trying out the clone method
Understanding the Class class
In this chapter, you find out how to use two classes of the Java API that are important to object-oriented programming:
- The Object class, which every other class inherits — including all the classes in the Java API and any classes you create yourself
- The Class class, which is used to get information about an object's type
The Mother ...
Get Java All-in-One For Dummies, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.