Question: Q.No.1 Comprehend a reservation system for an airline using inheritance consisting of 4 classes namely Flightdata, Business, Economy & Employee. Flightdata class need to have

Q.No.1 Comprehend a reservation system for an airline using inheritance consisting of 4 classes namely Flightdata, Business, Economy & Employee. Flightdata class need to have flight code, source, destination & date of travel. Business class need all information as Flightdata class & additionally contain passenger name, address, mobileNo & Ticketamount. Economy class contain all data as Flightdata and Business class but additionally contain discount. Employee class contain all data as Flightdata class but additionally contain employee code. All classes must have overriding get() & show () method to perform 1/0. Finally write main () class & create objects of Business & Employee class & perform I/O
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
