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


Please Help Members By Posting Answers For Below Questions

What is iterator in c++?

629


Why is c++ still popular?

591


Program to check whether a word is a sub-string or not of a string typed

1605


What is difference between array and vector in c++?

564


Is swift faster than go?

623






Why c++ does not have finally?

599


What is the type of this pointer in c++?

639


What is a static member?

621


If a function doesn’t return a value, how do you declare the function?

622


What is an operator in c++?

619


How to declare a function pointer?

585


What happens when you make call 'delete this;'?

607


Explain storage qualifiers in c++.

627


How can you quickly find the number of elements stored in a dynamic array?

585


Is it possible to provide default values while overloading a binary operator?

777