Open In App

Class Diagram for School Management System

The class diagram is the way to depict the relationships between various modules of any system. Here, we see about the classes and the relationship involved in School Management System.

Classes :



Attributes :

Methods :



1. SchoolManagement : 

2. Classroom:  

3. Student:  

4. Department :  

5. Lab :  

6. Employee :  

7. NoticeBoard : 

8. Bus :  

9. Equipments : 

10. Auditorium :  

11. Playground :  

Relationship :

Inheritance :

Inheritance is the concept of acquiring the resource from parents or base class by the child class. In inheritance, the class which allows its properties to be shared is known as the parent class and the class which acquires the properties from its parent class is known as the child class. Inheritance greatly reduces the need to code again and allows code reusability.

Here,

  • Student – PrimaryStudent, HigherSecondaryStudent
  • Employee – Teacher, SupportStaff
  • Equipments – LabEquipments, ClassEquipments

The above mentioned classes follow inheritance.

Association :

Association is a kind of relationship in which both the classes use one another and their methods. In association, no class is the owner of another class, because both classes use each other and still remain in their own space.

Unidirectional association :

Unidirectional association is one in which a particular class uses another class and its methods but is not composed inside that class.

Here the below mentioned classes follow unidirectional association,

  • Student and Classroom
  • Student and  Bus
  • Student and Playground
  • Student and NoticeBoard
  • SchoolManagement and Auditorium

Student uses classroom, bus, playground and notice board and the school management uses auditorium.

Aggregation :

Aggregation is a type of relationship in which one class is dependent on another class but can exist even without the other class. In short, the dependent class is not physically contained inside the independent class.

Here the below mentioned classes follow aggregation,

  • SchoolManagement and  Student
  • SchoolManagement and  Playground
  • SchoolManagement and  Bus
  • Teacher and  Student

Student, Playground and Bus can exist without School. Student can exist without teacher.

Composition :

Composition is a type of relationship in which a particular class owns another class. In composition, the dependent class cannot exist without the independent class and is physically contained inside the independent class.

Here the below-mentioned classes follow Composition,

  • SchoolManagement and  Department
  • Lab and  Equipments

Department cannot exist without School. Similarly equipments cannot exist without Lab.

Notations :

Class Diagram:


Article Tags :