What is the difference between virtual functions and pure virtual functions?
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 |
Write a C++ Program to Display Number (Entered by the User).
what is friend function in C++?
Explain why C++ is not purely Object Oriented Language
Factory Method C++ – How to delete pointers returned by it
Explain about Searching and sorting algorithms with complexities
What is meant by exit controlled loop?
How can you force the compiler to not generate them?
C++ supports multiple inheritance. What is the “diamond problem” that can occur with multiple inheritance? Give an example.
What is conversion constructor in C++
What are the costs and benefits of using exceptions?
What Is A Default Constructor in C++ ?
What is the difference between virtual functions and pure virtual functions?