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