What's the point to put line code in the virtual function? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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 Answer
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