What is the difference between virtual functions and pure virtual functions?
Answer Posted / hrpynux@gmail.com
A virtual function is a member function of base class which can be redefined by derived class. A pure virtual function is a member function of base class whose only declaration is provided in base class and should be defined in derived class otherwise derived class also becomes abstract.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the general quetions are in DEna bank manager IT/System interviews?
What is the problem with multiple inheritance?
Why do we use inheritance?
#include
What is purpose of inheritance?
Explain the difference between realloc() and free() in c++?
What are the sizes and ranges of the basic c++ data types?
List different attributes in C++?
What is a null tree?
What is the most powerful coding language?
What is difference between class and structure in c++?
What is different in C++, compare with unix?
Write about the retrieval of n number of objects during the process of delete[]p?
Explain what happens when a pointer is deleted twice?
When should we use container classes instead of arrays?