static void Main() { HotelRoom aRoom = new HotelRoom(234); SingleRoom aSingle = new SingleRoom(135); Suite aSuite = new Suite(453); Console.WriteLine(aRoom.ToString()); Console.WriteLine(aSingle.ToString()); Console.WriteLine(aSuite.ToString(); }
public static void TenFour() { HotelRoom aRoom = new HotelRoom(234); SingleRoom aSingle = new SingleRoom(135); Suite aSuite = new Suite(453); WriteLine(aRoom.ToString()); WriteLine(aSingle.ToString()); WriteLine(aSuite.ToString());//add ) System.Console.ReadLine(); }