Class Diagram for the Airline Management System

Understand how to create a class diagram for an airline management system using the bottom-up approach.

In the class diagram, we will first design and create the classes, abstract classes, and interfaces for the system. Then, we’ll identify the relationship between classes in accordance with all the requirements of the airline management system.

Components of an airline management system

In this section, we’ll define the classes for an airline management system. As mentioned earlier, we will design the airline management system using a bottom-up approach. We will create the classes of small components first. Next, we will integrate these components and create the class diagram for the entire airline management system.

Account

The Account class identifies the username and ID of an airline management system user. The class definition is represented below:

Press + to interact
The Account class
The Account class

Person

Person is an abstract class used to store information related to a person like a name, email, phone number, etc. In this class, the Address object type specifies the person’s address. There can be four types of accounts in the system:

  • Admin: This class keeps track of the overall system and flight and aircraft records.

  • Crew: This class views assigned flights in the system.

  • FrontDeskOfficer: This class manages passenger reservations.

  • Customer: This class views flight schedule, and reserves or cancels flight reservations.

The relationship diagram for these classes is shown below:

Press + to interact
Person and its derived classes
Person and its derived classes

Airline, airport, and aircraft

The Airline class has attributes like a name and an airline code to distinguish the airline from other airlines. It is an essential part of the airline management system.

Each airline operates out of different airports. Therefore, we need the Airport class to keep track of all the airports in the system.

Airlines own or hire aircraft to carry out their flights. The Aircraft class has attributes like ...

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.