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

Can there be at least some solution to determine the number of arguments passed to a variable argument list function?

606


When is the copy constructor called?

635


What is an arraylist c++?

688


What are friend classes? What are advantages of using friend classes?

610


Write a note about the virtual member function?

605






What do you mean by volatile and mutable keywords used in c++?

582


Define private, protected and public access control.

609


Which ide is best for c++?

546


Is c++ a good first language to learn?

578


What is the use of lambda in c++?

581


Is c++ vector dynamic?

574


What is fflush c++?

580


Explain register storage specifier.

597


What is ios flag in c++?

688


Why Pointers are not used in C++?

624