✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
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