OOP : A ticket to the Railway Reservation System
When we start the implementation of any project, the first thing that comes to our mind is what are it’s elements! OOP is a concept which lets you explore minute intricacies of a system while also letting you create innumerable packets of similar elements. Consider a train – the most amazing of all the modes of travelling, isn’t it? Let us explore this train and divide it into it's elements : Train ––> Bogies ––> Compartments ––> Births ––> Upper/Lower . There can be multiple ways of dividing a train into it's sub-parts. Similarly what parts can a Railway Reservation System have? We can have 1. Ticket booking 2. Enquiry 3. Ticket Cancellation 4. Seat Availability Status and what not! Amalgamating these using the wieldy concepts of OOP and the system is ready! OOP will enable us to create classes and objects . A class is a blueprint and an object is an instance of that class. When you book a train ticket, you select the source, destin...