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;

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

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