using System;
public abstract class Shape // абстрактный класс
{
public abstract double CalculateArea();
}
public class Restangle : Shape
private double length;
private double width;
public Restangle(double ltngth, double width) // конструктор класса
this.length = length;
this.width = width;
public override double CalculateArea()
return length * width;
public class Program
public static void Main()
Console.WriteLine("Hello World");