logo

Crowdly

Browser

Add to Chrome

Вихідний модуль містить код: class Rectangle { double width = 15, hight = ...

✅ 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

0%
0%
0%
0%
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