예제 #1
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);
        }
예제 #2
0
        static void Main(string[] args)
        {
            Suite s = new Suite(1, 300);

            Reception.SendRoomService(s);
        }