示例#1
0
        public static BookingAgent Copy(BookingAgent b)
        {
            BookingAgent r = new BookingAgent(b.name);

            r.id = b.id;
            return(r);
        }
 public Ticket()
 {
     id = a;
     a++;
     airline      = new Airline();
     customer     = new Customer();
     bookingAgent = new BookingAgent();
     flight       = new Flight();
 }
 public Ticket(Customer customer, BookingAgent bookingAgent,
               Flight flight, Airline airline)
 {
     this.id = a;
     a++;
     this.customer     = customer;
     this.bookingAgent = bookingAgent;
     this.flight       = flight;
     this.airline      = airline;
 }