Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            Suite royal = new Suite(1, 50);
            Guest jack  = new Guest(337859034, "jack");

            Reception.CheckIn(jack);
            Reception.CheckOut(royal);
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            Reception.SetRooms();
            Guest guest = new Guest();

            guest.Id   = 1;
            guest.Name = "Roey";
            Room room = Reception.CheckIn(guest);

            room = (RoomForTwo)room;
            if (Reception.CheckIn(guest) != null)
            {
                Console.WriteLine("Your room number is " + room.RoomNumber + 1);
            }
            else
            {
                Console.WriteLine("Sorry, all the rooms are taken");
            }
            Reception.SendRoomService(room);
            Reception.CheckOut(room);
        }