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
In what situations do you have to use initialization list rather than assignment in constructors?
Explain the difference between new() and malloc() in c++?
Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?
Difference between function overloading and function overriding.
What is difference between data abstraction and encapsulation?
Describe linkages and types of linkages?
What is public, protected, private in c++?
Explain the isa and hasa class relationships.
What do you mean by translation unit?
Difference between delete and free.
Can a constructor be private?
Why do we use string in c++?
How does stack look in function calls? When does stack overflow? What can you do to remedy it?
Execute the qsort () in c/sort() in c++ library or your own custom sort which will sort any type of data on user defined criteria.
What is constructor and destructor in c++?