logo

Crowdly

Browser

Add to Chrome

Вихідний модуль містить класи Class та Program : class Class { private ...

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

Вихідний модуль містить класи Class та Program :

class Class

{

private int x, y;

public Class (int x, int y)

{this.x = x; this.y = y; }

public static Class operator ++ (Class a)

{return new Class (a.x + 1, a.y + 2);}

public void View()

{ System.Console.Write ( "{0} {1}", x, y);}

}

У класі Program визначено метод Main , в тілі якого знаходиться код:

Class a = new Class (2,5), b;

b = a ++;

b.View(); a.View();

Вкажіть результат виведення на консоль після виконання методу Main():

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