W
william.lichtenberger
The javadoc on the class Object is as follows:
Class Object is the root of the class hierarchy.
Every class has Object as a superclass. All objects,
including arrays, implement the methods of this class.
Does this mean that Object implicitly extends Object?
It passes all the inheritance tests such as implementing the methods of
the parent class, the "is a" relationship etc.
So does it in fact extend itself or should it say "Every OTHER class
has Object as a superclass?
Thanks for your thoughts!
Class Object is the root of the class hierarchy.
Every class has Object as a superclass. All objects,
including arrays, implement the methods of this class.
Does this mean that Object implicitly extends Object?
It passes all the inheritance tests such as implementing the methods of
the parent class, the "is a" relationship etc.
So does it in fact extend itself or should it say "Every OTHER class
has Object as a superclass?
Thanks for your thoughts!