class Program
{
static void Main(string[] args)
{
House house = new House(2,2,2);
Console.WriteLine($"Площадь дома : {house.Sum()}");
Console.ReadKey();
}
}
public class House
{
public int width;
public int height;
public int length;
public House(int x, int y, int z)
{
x = width;
y = height;
z = length;
}
public int Sum()
{
return width * height * length;
}
}