logo

Crowdly

Browser

Add to Chrome

Вихідний модуль містить класи ClassA, ClassB, ClassC і Program : class ClassA...

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

Вихідний модуль містить класи ClassA, ClassB, ClassC і Program :

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 = 3;

public int VC {get {return c;} set {VB = c + 2; c = value; }}}

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

ClassC P = new ClassC();

P.VC = 10;

System.Console.Write ( "{0} {1}", P.VC, P.VA);

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

C# oop_class

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