An airline booking system stores information about tickets soldto passengers. Write a class called BasicTicket that stores apassenger’s name, departure city, arrival city and flight numberand ticket price. Write a constructor to set the fields and includea method called getPrice () which returns the price of the ticket.Write a derived class called PremiumTicket that inherits all thedetails from BasicTicket but also stores the passenger’s seatnumber. The price for PremiumTickets is 10% more than the price ofa BasicTicket. Write a function which redefines the getPrice ()method in PremiumTicket to return the price of the PremiumTicket bycalling BasicTicket’s getPrice () method and
PayPal Gateway not configured
PayPal Gateway not configured