What do you mean by pure virtual functions in C++? Give an example?
A pure virtual function is a virtual function in C++ for which we need not to write any function definition and only we have to declare it. It is declared by assigning 0 in the declaration. An abstract class is a class in C++ which have at least one pure virtual function.
| Is This Answer Correct ? | 0 Yes | 0 No |
Do we have to use initialization list in spite of the assignment in constructors?
What can I use instead of namespace std?
How the endl and setw manipulator works?
Difference between pointer to constant vs. Pointer constant
When should we use multiple inheritance?
What are the classes in c++?
What does std mean in c++?
What is the use of dot in c++?
Why do we use templates?
Does c++ cost money?
Explain rethrowing exceptions with an example?
What is a rooted hierarchy?