lundi 1 août 2016

Inheritance with Virtual function

Consider a base class having a virtual function and parent class inherits this base class and implements that function. Say if a child class inheriting parent class has a function with same definition , does it override? Also, I am trying to implement features in such a way that base class has a virtual function and parent class inherits base class but does not implement it but the child class inheriting from parent class implements it. Is this allowed?

Aucun commentaire:

Enregistrer un commentaire