**UML Tutorials - Herong's Tutorial Examples** - Version 1.02, by Dr. Herong Yang

Class Diagram - Class Notation

This section describes the Class Notation used in a UML Class Diagram. A Class Notation presents a class of objects which share the same set of properties and behaviors.

A Class Notation is the primary graphical notation used in a UML Class Diagram to represent a class of objects which share the same set of properties and behaviors. Conceptually, a class:

- Must have a name to identify the class.
- May have some attributes to store properties of the class.
- May have some operations to describe behaviors of the class.

A Class Notation is drawn as a rectangle shape with 3 sections to list the class, its attributes and its operations.

For example, the "Time" class can be defined as:

Name: Time Attributes: public Integer hour public Integer minute public Integer second Operations: public void addHours(Integer) public void addMinutes(Integer) public void addSeconds(Integer)

This class can be drawn as a Class Notation in a UML class diagram as shown below:

Note that a Class Notation can be simplified to show the name section only.

Table of Contents

Introduction of UML (Unified Model Language)

►UML Class Diagram and Notations

►Class Diagram - Class Notation

Class Diagram - Association Notation

Class Diagram - Association End Notation

Class Diagram - Association End Navigability Notation

Class Diagram - Aggregation and Composition Notations

Class Diagram - Generalization Notation

Class Diagram - Realization Notation

Class Diagram - Dependency Notation

UML Activity Diagram and Notations

UML Sequence Diagram and Notations

UML State Machine Diagram and Notations

UML Use Case Diagram and Notations