O'Reilly logo

Sams Teach Yourself EJB in 21 Days by Krishna Kothapalli, Ragae Ghaly

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Class Diagrams

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.

Class Notation

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required