COMP 14: Class Notes

Just as, in the real world, we defined the group, PhysicalObject, to group all physical objects in the universe and define their common properties, Java provides a class, Object, to group all Java objects and define their common methods. It is the top-level class in the inheritance hierarchy Java creates for classes (Figure 19). ................
................