Class Diagram

 

The class diagram is core to object-oriented design.  It describes the types of objects in the system and the static relationships between them.  

Class:

A class is a system entity that models a real-world object.  School, Student and Course are all examples of classes.  A class is made up of attributes which define the information that each class knows about itself and operations which are the processes that a class can carry out.  Often you will see operations referred to as methods.

Tell me more about classes.
Tell me about attributes.
Tell me about operations.

Association, Aggregation and Composition:

The association link indicates that two classes have a relationship: students attend a school, a student takes courses.  Aggregation and composition are links between classes that allow you to indicate that one class belongs to another.

 

Tell me more about association, aggregation and composition.

More Class Diagram Concepts:

 

Related Topics: