|
|
|
|
As the textbook says, the Every class in Java ultimately extends from the Object class. It is the top of the Java inheritance hierarchy, which means that there is only a single inheritance tree in Java. (In C++, this is not true; there are as many inheritance trees as you wish to invent -- you get a forest, not a single tree.) To get a good feel for what is in the Object class, click on this link: http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html , which will show you the Object class for Java 5/1.5. Browse over it, to see what it supplies. Here, we will talk about some of the features it provides. |
|
This page was last modified on 02 October, 2007 |