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

            r.id = b.id;
            return(r);
        }
コード例 #2
0
 public Ticket()
 {
     id = a;
     a++;
     airline      = new Airline();
     customer     = new Customer();
     bookingAgent = new BookingAgent();
     flight       = new Flight();
 }
コード例 #3
0
 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;
 }