public override double Length() { return(2 * (FirstSide.Length() + SecondSide.Length())); }
public override string ShowInfo() { return($"Прямоугольник со сторонами {FirstSide.Length():0.000} и {SecondSide.Length():0.000}, площадью {this.Area():0.000} и радиусом {this.Length():0.000}"); }
public double Area() { return(FirstSide.Length() * SecondSide.Length()); }