
Inheriting From the Object Class
The Object class in Java is a superclass for all other classes defined in Java’s class libraries, as well as for user-defined Java classes. In object-oriented terms, an object is an instance of a class. Note the distinction between the “Object class” and a Java “object”: A Java object is