Pergunta de entrevista da empresa Gartner

Difference between poly morph-ism and inheritance?

Resposta da entrevista

Sigiloso

14 de mai. de 2020

Inheritance in C++ takes place between classes. In an inheritance (is-a) relationship, the class being inherited from is called the parent class, base class, or super class, and the class doing the inheriting is called the child class, derived class, or subclass. poly morph-ism occurs when there is a hierarchy of classes and they are related by inheritance.