Java Reference
In-Depth Information
Display 12.2
A Class Hierarchy in UML Notation
Person
Arrows go from a
derived class to its
base class.
Employee
Student
Undergraduate
Graduate
Faculty
Staff
Display 12.3 shows some possible additional details of the inheritance hierarchy for
the two classes Person and one of its derived classes, Student . Suppose s is an object
of the class Student . The diagram in Display 12.3 tells you that you can find the
definition of
s.toString();
and
s.set("Joe Student", 4242);
in the class Student , but the definition of
s.setName("Josephine Student");
is found in the definition of the class Person .
 
 
Search WWH ::




Custom Search