✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
class Rectangle
{ double width = 15, hight = 10, s;
string t = "прямокутник";
public Rectangle (double w, double h)
{ width = w; hight = h; s = w * h; }
public Rectangle (int w, int h)
{ width * = w; hight * = h; s = width * hight; }
public string RectForm()
{return string.Format ( "{0}: площа = {1}.", t, s); }
}
class Program
{ static void Main ()
{ Rectangle k = new Rectangle (2, 3);
Rectangle t = new Rectangle (3, 4.0);
System.Console.Write (k.RectForm() + t.RectForm());
}
}
Вкажіть результат виведення на консоль після спроби запустити програму на компіляцію і виконання:
C# oop_class