UML diagram, which describes the structure of a system by showing the system's classes, their attributes, and the relationships among the classes.
The class element consists of three sections:
- Name
- Attributes – represent fields of a class
- Operations – represent methods of a class
The visiblity of attributes and operations can be specified as:
- Private (-)
- Protected (#)
- Package (~)
- Public (+)
Class Diagram Elements
Class Diagram can consist of these types of elements:
-Package
-Class
-Interface
-Enumeration
-Table
-Signal
-Collaboration
-Association (unidirectional, bidirectional, composition, aggregation, and custom ones)
-N-ary association
-Generalization
-Realization
-Dependency
-Containment
Generalization