Answer to Question #330818 in C++ for Harsh

Question #330818

What is the difference between Virtual Function and Pure Virtual Function? Is it always mandatory


to implement or define all the pure virtual function of the base class into derived class? Justify your


answer.

1
Expert's answer
2022-04-19T08:07:08-0400

The pure virtual function is a virtual function without realizing. It is not mandatory to realize all virtual functions in the derived class, but if not all functions are realized, the derived class remand abstract, and it is impossible to create an objects of that class.


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS