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:

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

   public Integer hour
   public Integer minute
   public Integer second

   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:

UML Notation Shapes - Class
UML Notation Shapes - Class

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

Table of Contents

 About This UML Tutorial Book

 Introduction of UML (Unified Model Language)

UML Class Diagram and Notations

 What Is a Class Diagram?

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

 MS Visio 2010 - UML Drawing Tool


 Full Version in PDF/EPUB