|
Please compare the two diagrams 1 and 2 to the right and below, respectively.
Diagram 1 has four classes, Object, Student, UndergraduateStudent, and GraduateStudent. In Diagram 2, in addition to the classes on the first diagram, it has a String class. The student class is exactly the same in both diagrams. In Diagram 1, the Student class attributes ‘#courseGrade’ and ‘#name’ (both of type String) are in the attributes section. However in Diagram 2, those attributes ‘#courseGrade’ and ‘#name’ are represented as associations with the String class, and do not appear in the attribute section of Student anymore.
|

|