✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
class Rectangle
{ рublic double width, hight;
public Rectangle() {width = 40; hight = 80; }
static Rectangle() {width = 100; hight = 200; }
public void Zoom (double d) {width + = d; hight + = d; }
}
class Program
{ static void Main ()
{Rectangle p;
p = new Rectangle();
p = new Rectangle();
p.Zoom (15);
System.Console.Write ( "{0} {1}", p.width, p.hight);
}
}
Метод Main розроблявся для зміни розміру прямокутника.
Трансляція програми завершена невдало. З наведених висловлювань вкажіть висловлювання, яке розкриває причину некоректності програми:
C# oop_class