Java Class Diagram Arrows. Following are the purpose of class diagrams given below. Example of a uml class diagram representing online shopping domain.
The model element at the tail of the arrow the client depends on the model element at the arrowhead the supplier. In a class diagram inheritance is described by an arrow with a triangle head. Example of a uml class diagram representing online shopping domain.
A solid line with a hollow closed arrow at one end represents inheritance.
Besides using rectangles to represent classes class diagrams include arrows to represent relationships among classes. The model element at the tail of the arrow the client depends on the model element at the arrowhead the supplier. Uml uses a variety of types of arrows. It is often used to indicate that a class knows about perhaps as in receives as an argument to a method or has another class perhaps as an instance variable.
