logo

Crowdly

Дано визначення класів і об’єктів: class C1 {   public:           int ...

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

Дано

визначення класів і об’єктів:

class C1 {

  public:

          int x;

          virtual

void f(){}

};

class C2: public C1 {

  public:

          char x;

};

C1 *a = new C2;

        Написати всі

вірні звертання до того

поля x об’єкту a, яке визначене в класі C1. Відповідь

пояснити.

More questions like this

Want instant access to all verified answers on vns.lpnu.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!