Question #38394

Reuse the functions of the bookTickets class in a new class, named bookETicket, to add the
feature of e-ticket booking.
Create a new class named viewMaintenance that allows the maintenance personnel of FlyHigh
Airlines to view the maintenance details of aircrafts.
1

Expert's answer

2014-01-22T09:54:11-0500
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Question38394
{
    class bookETicket : bookTicket
    {
        public bookETicket()
        {
        }
        public void addTicket(){
            Console.WriteLine("Book e-ticket");
        }
    }
    class viewMaintenance
    {
        public viewMaintenance()
        {
        }
        public void viewDetails(String aircraft){
            Console.WriteLine(aircraft+" details");
        }
    }
    class Program
    {
        static void Main(string[] args)
        {
            bookTicket bt = new bookTicket();
            bookETicket bet = new bookETicket();
            bt.addTicket();
            bet.addTicket();
            viewMaintenance vm = new viewMaintenance();
            vm.viewDetails("Boeng 777");
            Console.ReadLine();
        }
    }
    class bookTicket
    {
        public bookTicket(){
        }
        public void addTicket(){
            Console.WriteLine("Book ticket");
        }
    }
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!
LATEST TUTORIALS
APPROVED BY CLIENTS