Open In App

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 :



Attributes :

Methods :



1. TheatreManagement  :

2. Movie  :

3. Hall :

4. Seats :

5. Customer :

6. TicketCounter : 

7. Employee :

8. Parking :

9. Shops :

10. OperatorRoom :

11. RestRoom :  

Relationships :

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 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 is the parent class and the Technical staff and support staff are its child classes.

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 composition relation exists between these classes,

  • TheatreManagement and OperatorRoom
  • TheatreManagement and Hall
  • Theatremanagement and Movie
  • Hall and Seats
  • TheatreManagement and Ticket

So here the operator room, hall, movie, and ticket cannot even exist if there is no theatre so they are physically contained inside the theatre. Likewise, without the hall, there are no seats.

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 relationships exist between 

  • Customer and Employee
  • Customer and Shops

Because they Customer needs employee and employee needs customer and in the same way customer buys from shops and shops get profited from customers.

Unidirectional association :

As the name suggests unidirectional association is the kind of association in which the relationship is in one direction only. Only one class uses the methods of another class, whereas the other class is not benefited by this relationship.

Here unidirectional association exists between these classes,

  • Customer and  Restroom
  • Customer and Ticket
  • Employee and Parking
  • Employee and Restroom

Here the customer uses restroom and ticket, the employee uses parking and restroom. Here only the former classes are benefitted from the latter.

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 aggregation relation exists between these classes

  • Theatre management and Parking
  • Movie and Hall
  • TickerCounter and  Employee

These classes use each other but are not entirely dependent on one another and not physically contained also.

Notations :

Class Diagram :

Article Tags :