static void Main(string[] args) { Flat simpleFlat = new Flat(10, 67, 4); OneRoomFlat one_room_flat = new OneRoomFlat(11, 355, 3, 67); TwoRoomFlat two_room_flat = new TwoRoomFlat(11, 355, 3, 67, 45); simpleFlat.PrintInfo(); one_room_flat.PrintInfo(); two_room_flat.PrintInfo(); Console.ReadKey(); }