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
What is a multiset c++?
What function initalizes variables in a class: a) Destructor b) Constitutor c) Constructor
What is the full form of c++?
When should we use container classes instead of arrays?
Write some differences between an external iterator and an internal iterator?
Why is main function important?
What is a c++ object?
What is the difference between containment and delegation?
How can you differentiate between inheritance and implementation in c++?
What is the type of 'this' pointer?
What do you mean by friend class & friend function in c++?
What is the keyword auto for?
What is flag in computer?
How to give an alternate name to a namespace?
What is abstraction c++?