Open In App

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 :



Attributes :

Methods :



1. AirportManagement :

2. TicketCounter :

3. Flight :

4. Employees :

5. Runway :

6. Passengers :  

7. NoticeBoard :

8. Luggage :

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 Employee class is the parent class, Airport employees and Airplane employees are its child classes.

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.

Here association relationship exists between passengers and employees because passengers need employees and employees serve passengers, but they both exist in their own space.

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 these three classes follow aggregation,

  • Flight and passengers
  • Flight and notice board
  • Flight and runway

Passengers, Notice board, and runway are related to flight in some way but they can also exist without a flight and one flight can be replaced by another flight.

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 passengers and luggage follow a composition relationship because luggage cannot even exist without its owner(passengers).

Notations : 

Class diagram :

Article Tags :