Connectors
In business, one of the most important factors to success is the relationships between the people you work with. The same can be said of a system of classes, interfaces, enumerations, and packages. In addition to the structures in a class diagram, the diagrams perhaps more importantly express the relationships between the structures, using a standardized set of lines and symbols. These lines connect structures together. Let’s look at the relationships expressed in UML class diagrams.
Inheritance
Inheritance between two classes is presented with a solid line with an open triangular arrow on one end. For example, if I have a class called Person
, and another class called Student
that inherits from Person
, the diagram would look like Figure A2.10.
Figure A2.10: Inheritance is represented with a solid line with an empty triangular arrow pointing to the based class.
The arrow should point from the inheriting class to the base class. You are...