logo

Crowdly

Browser

Add to Chrome

Проаналізуйте наведений код. abstract class Rectangle { рublic double widt...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Проаналізуйте наведений код.

abstract class Rectangle

{ рublic double width, hight;

public Rectangle (double width, double hight)

{this.width = width; this.hight = hight; }

public double Zoom (double d)

{width + = d; hight + = d; return width * hight; }

}

class Program

{ static void Main ()

{Rectangle rect = new Rectangle (10, 20);

rect.Zoom (-5);

System.Console.Write ( "{0} {1}", rect.width, rect.hight);

}

}

Вкажіть результат виведення на консоль після спроби запустити програму на компіляцію і виконання:

C# oop_class

More questions like this

Want instant access to all verified answers on moodle.chnu.edu.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome