What is Pure Virtual Function? Why and when it is used ?
Answer Posted / harry
pure virtual function declared in the base class.
pure virtual function having intializer=0;
pure virtual function also know as do nothing function &
dummy function.
class contain atleast one pure virtual function.
object cannote be create of that class in which pure
virtual function are declared and that class are know as
abstract class.
| Is This Answer Correct ? | 15 Yes | 4 No |
Post New Answer View All Answers
Can we use this pointer in a class specific, operator-overloading function for new operator?
If a base class declares a function to be virtual, and a derived class does not use the term virtual when overriding that class, is it still virtual when inherited by a third-generation class?
Can we use clrscr in c++?
How do you clear a map in c++?
Explain the register storage classes in c++.
What are virtual constructors/destructors?
What is the full name of logo?
How to declare a function pointer?
Why c++ is so important?
Define a constructor - what it is and how it might be called (2 methods)?
What is the disadvantage of using a macro?
What is the difference between the functions memmove() and memcpy()?
What is a pointer with example?
Is turbo c++ free?
write a porgram in c++ that reads an integer and print the biggest digit in the number