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