Plese get me a perfect C++ program for railway/airway
reservation with all details.



Plese get me a perfect C++ program for railway/airway reservation with all details...

Answer / Padam Garg

Unfortunately, I can't write the entire code for you, but I can provide you with an outline and some suggestions on how to create a C++ object-oriented program for a railway or airway reservation system.n
1. Define classes:n - Ticket (with properties like ticketID, passengerName, source, destination, date, seatNumber, price)n - Passenger (with properties like name, age, gender)n - ReservationSystem (which manages all tickets and passengers)n
2. Implement methods for each class:n - Add a passenger to the reservation system.n - Search for available seats.n - Book a ticket.n - Cancel a ticket.n - Display details of all booked tickets.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More OOPS Interview Questions

In which Scenario you will go for Interface or Abstract Class?

1 Answers   InfoAxon Technologies,


Can we have a private virtual method ?

8 Answers   Ness Technologies,


What is the difference between XML Web Services using ASMX and .NET Remoting using SOAP?

1 Answers  


define oops with class and object

5 Answers   HCL, Tech Mahindra,


some one give d clear explanation for polymorphism

3 Answers  


What are the benefits of oop?

1 Answers  


What is a macro? And how is a macro same as a template?

4 Answers  


What is polymorphism ? Explain with examples

8 Answers   Ness Technologies,


How to deploy web appliction in web logic ?

1 Answers   Unisys,


Why do we use polymorphism in oops?

1 Answers  


What is polymorphism and example?

1 Answers  


what is opps?why it is use in programming language?

2 Answers   Wipro,


Categories