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
Why do we use the using declaration?
Define the process of handling in case of destructor failure?
Is it possible to provide special behavior for one instance of a template but not for other instances?
total amount of milk produced each morning and then calculates and outputs the number of cartons needed for this milk , the cost of producing the milk and the profit from producing this milk.
How to get the current position of the file pointer?
What is difference between n and endl in c++?
What is java and c++?
What does it mean to declare a member function as static?
What is c++ used for in games?
What can I safely assume about the initial values of variables which are not explicitly initialized?
Is swift faster than c++?
What is the benefit of encapsulation?
How is objective c different from c++?
Keyword mean in declaration?
Why do we use templates?