What do you mean by pure virtual functions in C++? Give an example?
Answer Posted / hrpynux@gmail.com
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 |
Post New Answer View All Answers
We use library functions in the program, in what form they are provided to the program?
What is the header file for setw?
What is the difference between method overloading and method overriding in c++?
Why is c++ still popular?
What is one dimensional array in c++?
Is c++ used anymore?
What is class and structure in c++?
What's c++ used for?
How c functions prevents rework and therefore saves the programers time as wel as length of the code ?
what are the iterator and generic algorithms.
Is there any function that can skip certain number of characters present in the input stream?
How are pointers type-cast?
Can member data be public?
Describe linkages and types of linkages?
What is the difference between an array and a list?