logo

Crowdly

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

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

Дано

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

class C1 {

  public:

          virtual

void f(){}

                 

void DoIt(){}

};

class C2: public C1 {

  public:

                 

void DoIt(){}

};

C1 *a = new C2();

        Написати всі

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

методу DoIt() об’єкту a, який визначений в класі C2. Відповідь пояснити.

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!