You are on page 1of 1

UML class diagram notation

Program element

Diagram element

Class

Meaning
Types and parameters specified when important; access indicated by
+ (public), (private), and # (protected).

Class
attribute
+operation( )

Interface

Name starts with I. Also used for abstract classes.

<<interface>>
IClass
+operation( )

Note

Any descriptive text.


descriptive text

Package

Grouping of classes and interfaces.

Package

Inheritance

B inherits from A.

B
Realization

B implements A.

B
Association

Association (one way)

Aggregation

Composition

A and B call and access each others elements.

A can call and access Bs elements, but not vice versa.

A has a B, and B can outlive A.

A has a B, and B depends on A.

You might also like