Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApp12
- {
- public class Structure
- {
- public string Town;
- public string Street;
- public int Number;
- public int TotalArea;
- public void Write()
- {
- Console.WriteLine("ваш дом находится в городе", Town,
- "на улице", Street, "его номер:", Number, "площадь:", TotalArea);
- }
- }
- public class MultitoreyBuilding : Structure
- {
- public int Floor;
- public int AreaOfOneFloor(MultitoreyBuilding house)
- {
- return house.TotalArea / house.Floor;
- }
- }
- class Program
- {
- static void Main()
- {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement