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
Is c++ used anymore?
How do you clear a map in c++?
Write a C++ Program to check whether a number is prime number or not?
What is the best way to take screenshots of a window with c++ in windows?
Can constructor be private in c++?
What are the syntactic rules to be avoid ambiguity in multiple inheritance?
How would you use qsort() function to sort an array of structures?
Differentiate between an inspector and a mutator ?
How do we balance an AVL Tree in C++?
What is object in c++ example?
What are guid? Why does com need guids?
Explain the operation of overloading of an assignment operator.
Do vectors start at 0 c++?
What is the use of pointer in c++ with example?
Why c++ is created?