Exemple #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Enter your city");
            string city = Console.ReadLine();

            Console.WriteLine("Enter voyage city");
            string travel = Console.ReadLine();

            MorningVoyage   MorningVoyage   = new MorningVoyage();
            AfternoonVoyage AfternoonVoyage = new AfternoonVoyage();
            EveningVoyage   EveningVoyage   = new EveningVoyage();

            BusStation ticket = new BusStation(MorningVoyage, AfternoonVoyage, EveningVoyage);

            Customer Customer = new Customer();

            Customer.CreateOrder(ticket);

            Console.Read();
        }
Exemple #2
0
 public BusStation(MorningVoyage morning, AfternoonVoyage afternoon, EveningVoyage evening)
 {
     this.MorningVoyage   = morning;
     this.AfternoonVoyage = afternoon;
     this.EveningVoyage   = evening;
 }