In this lesson, we are going to identify and design the classes, abstract classes, and interfaces based on the requirements that we have previously gathered from the interviewer in our movie ticket booking system.

Components of a movie ticket booking system

As mentioned earlier, we should design the movie ticket booking system using a bottom-up approach.

Seat

Our movie ticket booking system should have a Seat object that will be an abstract class and can be of three types: silver, gold, and platinum. Each seat type will have a fixed cost and differs from one another.

The visual representation of these classes is as follows:

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