logo

Crowdly

Дано визначення класів: class C1 {   public:            void aPolymorp...

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

Дано

визначення класів:

class C1 {

  public:

           void

aPolymorphMethod();       //

поліморфний метод

};

class C2: public C1 {

  public:

           virtual

void aVirtualMethod(); //

віртуальний

метод

};

void C1::aPolymorphMethod()

      

aVirtualMethod();

}

void C2::aVirtualMethod(){}

      Виправити помилку у визначенні цих класів,

яка робить неможливим поліморфізм. Відповідь пояснити.

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!