In a class diagram, we visually distinguish the different kinds of Java entities, as follows:
Most of these elements are
shown below. The class or interface being described in the current
chapter is shaded grey (this is not applicable for package class
diagrams). A solid line represents extends
, while a
dotted line represents implements
.