A class diagram describes the static structure of the system, and provides the domain view of the real-world entities. It consists of classes, their structure, and their relationships to other classes. The following sections describe the notation of a class and the type of relationships that can exist between classes.
A class represents both the properties (attributes) and the behavior (operations) of a domain entity. In UML, a class is modeled as a solid rectangle with three compartments. The top compartment holds the class name and other general properties of the class. The middle compartment holds a list of attributes. The bottom compartment holds a list of operations.
For example, Figure D.1 shows the EnrollmentCartEJB ...