The Wayback Machine - https://web.archive.org/web/20240610142013/https://www.geeksforgeeks.org/class-diagram-for-school-management-system/
Open In App

Class Diagram for School Management System

Last Updated : 25 Nov, 2021
Improve
Improve
Like Article
Like
Save
Share
Report

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 :

  • SchoolManagement – This class contains the overall details of the school.
  • Classroom – This class contains the details of the classroom.
  • Student – This class is the base class of two child classes – Primary student and Higher Secondary Student. Since Primary Student is a Student and Higher Secondary Student is a Student.
  • Primary Student – This class is the child class of Student and contains the details of the standard between Class 1 to Class 10.
  • Higher Secondary student – This class is the child class of Student and contains the details of the standard Class 11 and Class 12.
  • Department – This class contains the details of the department in the School.
  • Lab – This class contains the lab details of any school with its necessary information.
  • Employee – This class is the base class of two child classes – Teacher and SupportStaff. Since a Teacher is an Employee and SupportStaff is an Employee.
  • Teacher – This class is the child class of Employee and contains the details of the teachers.
  • SupportStaff – This class is the child class of Employee and contains the details of the support staff like nonteaching staff, bus drivers, etc.
  • NoticeBoard – This class contains the details of the noticeboard and its information.
  • Bus – This class displays the details of the bus for each area and also the driver details for a particular bus and the areas visited by the bus.
  • Equipment – This class is the base class of two child classes – Lab Equipments and Class Equipments. Since Lab Equipment is an Equipment and Class Equipment is an Equipment.
  • LabEquipments – This class is the child class of Equipment and it contains the details of all the equipment needed for the lab like test tubes, microscope, computers, etc.
  • ClassEquipments – This class is the child class of Equipment and it contains the details of all the equipment needed for any classroom like fan, bench, light.
  • Auditorium – This class contains the details of the auditorium of the school and the details associated with it like seat details, event details etc.
  • Playground – This class contains the details of the playground of any school and it also shows whether the playground is occupied or not

Attributes :

  • SchoolManagement – SchoolName , Address , ContactNumber, MediumOfStudy
  • Classroom – ClassId, ClassName, TeacherId, StudentCount, EquipmentId
  • Student – StudentId, StudentName, ClassId, Section, BusId
  • Department – DepartmentId, DepartmentName, InchargeName, MemberList
  • Lab – LabId, InchargeId, LabName, EquipmentId
  • Employee –  EmployeeId, EmployeeName, Salary, DepartmentId
  • NoticeBoard– NewsList, InchargeName
  • Bus – BusId, DriverId, AreaList, BusNumber, Capacity.
  • Equipments – EquipmentId, Cost
  • LabEquipments – EquipmentName, EquipmentCount
  • ClassEquipments – ClassId, BenchCount, FanCount, LightCount
  • Auditorium – TotalSeats, SeatsOccupied, EventName, EventDate, EventTime
  • Playground – Area, ClassId

Methods :

1. SchoolManagement : 

  • IsOpen() – This method is to check whether the school is open or not.
  • SchoolDetails() – This method displays the details of a school like the name of the school, its region, its state etc.

2. Classroom:  

  • ClassDetails() – This method contains the details of the classroom.

3. Student:  

  • StudentDetails() – This contains the details of each and every student in the school along with their personal details, which class they belong to.
  • PayFees() – This method shows the fee details of each student and allows the student to pay the fees.

4. Department :  

  • DepartmentDetails() – This class contains various departments of School like English, Tamil,Art, etc.

5. Lab :  

  • LabDetails() – This shows the details of the lab and its incharge name.
  • IsOccupied() – This method tells whether the lab is occupied or not.
  • PayFine() – This method shows the fine details of a particular student who breaks or damages any equipment in the lab.

6. Employee :  

  • EmployeeDetails() – This method displays the details of employees along with their designations and salary details.
  • CheckIn() – This shows whether the particular employee is checked in to the school or not.
  • ReceiveSalary() – This contains the salary details and shows whether they received the salary or not.

7. NoticeBoard : 

  • Display() – This method is to display all the news or any event details or any new information from the notice board.
  • AddContent() – This is to add any new content to the notice board.

8. Bus :  

  • BusDetails() – This method contains the details of the bus.
  • ShowSeats() – This shows the seat details in a particular bus.

9. Equipments : 

  • EquipmentDetails() – This contains the details of equipment in the lab and also the equipment of class
  • PurchaseEquipment() – This method is to purchase the equipment and contains the details of newly purchased equipment.
  • Repair() – This method is to repair any equipment.

10. Auditorium :  

  • BookAuditorium() – This method is to book the auditorium by any department inside the school to conduct any event or guest lectures.
  • EventDetails() – This method shows the details of any event on a particular date.
  • DisplaySeats() – This method displays the available seats in the auditorium for any event.

11. Playground :  

  • IsOccupied() – This method tells whether the playground is occupied or not.

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:



Similar Reads

Class diagram for Mall Management system
Class Diagram is one among the UML diagram consists of many classes and describes the attributes and relationships among various objects. Classes: The classes for Mall management system are Mall management -It is the class that depicts the entire shopping mall.Floor -It contains the details of each floor of the shopping mall.Shops -It contains the
5 min read
Class diagram for Hotel management system
Class diagram is a type of UML diagram which shows the properties and relationships among various objects. Class : The classes used in this system are, Hotel Management : This class depicts the entire hotel and says whether the hotel is opened or closed.Employees : It contains the details of the Employee. There are two kinds of employees, Server an
4 min read
Class diagram for Theatre Management System
A theatre is a place where everyone enjoys the movie in public. In this article, let's see about the typical Indian theatre's management system along with its class diagram. Classes : TheatreManagement : This class contains the details of theatre.Movie : It contains the movie’s details along with their hall number and timings.Hall : This class cont
5 min read
Class Diagram for Bus Stand Management System
A bus stand is a place where all buses will be available for transportation within a state and among other states. In this article, we'll see about the bus stand management of a typical Indian bus stand along with its class diagram. Classes : BusStandManagement - This class contains the details about the bus stand.Employee - This class gives us the
6 min read
Class Diagram for College Management System
Class Diagram is the way to represent the relationship between the classes. In this article, we will see about the class diagram for the College Management system. Classes : CollegeManagement - This class is the overall main class of the whole system.Department - This class contains the details of various departments in the college.Student - This c
7 min read
Class diagram for Airport management System
The airport is a complex system in which thousands of domestic and international flights function every day and it needs proper planning and execution to make it a management system. Classes : AirportManagement - This class contains the overall details of the airport.TicketCounter - It allows the passengers to buy the ticket and do pay for a ticket
5 min read
Class Diagram for Library Management System
In Object - Oriented modelling , the main building block generally represents different objects in a system, their attributes, their different functions, and relationships among objects. These building blocks are known as Class Diagram. Class diagrams are generally used for conceptual modeling of static view of a software application, and for model
4 min read
Use Case Diagram for Library Management System
A use case diagram in UML helps to show the various ways in which a user could interact with a system. For a Library Management System, the use case diagram helps visualize the interactions between users (actors) and the system's functionalities (use cases). This diagram provides a clear, simplified way to understand how the system operates and wha
4 min read
Difference between Computer Information System and Management Information System
1. Computer Information System (CIS) :Computer Information System, as name suggests, is basically a system composed of people and computer that processes or interprets information and allows organization to communicate in more effective manner. These systems also encourage creative and effective innovation, and make collaboration easier than before
4 min read
Use Case Diagram for Bank ATM System
Automated Teller Machine (ATM) also known as ABM (Automated Banking Machine) is a banking system. This banking system allows customers or users to have access to financial transactions. These transactions can be done in public space without any need for a clerk, cashier, or bank teller. Working and description of the ATM can be explained with the h
2 min read
Article Tags :