Class Diagram

The Class diagram captures the logical structure of the system: the Classes - including Active and Parameterized (template) Classes - and things that make up the model. It is a static model, describing what exists and what attributes and behavior it has, rather than how something is done. Class diagrams are most useful to illustrate relationships between Classes and Interfaces. Generalizations, Aggregations and Associations are all valuable in reflecting inheritance, composition or usage, and connections, respectively.

Example Diagram

There are two forms of the Aggregation relationship in the following diagram. The pale form indicates that the Class Account uses AddressBook, but does not necessarily contain AddressBook. The dark Composite Aggregation form indicates ownership or containment by the target Classes (at the diamond end) of the source Classes.

Example of a Class Diagram

Toolbox Elements and Connectors

Select Class diagram elements and connectors from the Class pages of the Toolbox.

Enterprise Architect also supports a number of stereotyped Class elements to represent various entities in web page modeling.

Tip:

Click on the following elements and connectors for more information.

Class Diagram Elements

Class Diagram Connectors

e_Package

c_Associate

e_Class

c_Generalize

e_Interface

c_Compose

e_datatype

c_Aggregate

e_enumeration

c_AssociationClass

e_primitive

c_Assembly

e_Table

c_Realize

e_signal

c_Nesting

c_Association

c_PkgMerge

 

c_PkgImport