What's the point to put line code in the virtual function? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

What's the point to put line code in the virtual function?

2nd Aug 2016, 4:36 PM
Jean Christophe
Jean Christophe - avatar
1 Réponse
0
Are you asking why to define a virtual function in a base class? Sometimes the inheriting class needs to override the base class's implementation of a function. If you mean something else could you expand on your question please?
15th Aug 2016, 3:10 PM
Ahkrin