✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
class ClassA {
int a;
public int VA {get {return a; } Set {a = value; }}}
class ClassB: ClassA {
int b;
public int VB {get {return b; } Set {b = value; VA = b-3; }}}
class ClassC: ClassB {
int c;
public int VC {get {return c; } Set {c = value; VB = c-2; }}}
У класі Program визначено метод Main , в тілі якого знаходиться код:
ClassC P = new ClassC();
P.VC = 10;
System.Console.Write ( "{0} {1}", P.VC, P.VA);
Вкажіть результат виведення на консоль після виконання методу Main():
C# oop_class