Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1
Charles Zolina See virtual functions in the base class can either have a definition or they might not. But a pure virtual function doesn't have a definition in the base class, and if you have even a single pure virtual function in a class then the class has to be declared abstract. Purpose of using virtual function is to give privilege to the sub class to override them. And they come under run-time polymorphism.
25th Nov 2019, 5:25 AM
Avinesh
Avinesh - avatar
+ 1
Charles Zolina This will help you understand what are classes and objects. Edit: OOPS is vast so tell us what part you don't understand because explaining the whole oop is difficult. https://www.sololearn.com/Discuss/2075135/?ref=app
25th Nov 2019, 4:47 AM
Avinesh
Avinesh - avatar
+ 1
Charles Zolina you're welcome
25th Nov 2019, 7:51 AM
Avinesh
Avinesh - avatar