What is Pure Virtual Function? Why and when it is used ?

Answer Posted / guest

The abstract class whose pure virtual method has to be
implemented by all the classes which derive on these.
Otherwise it would result in a compilation error.
This construct should be used when one wants to ensure that
all the derived classes implement the method defined as
pure virtual in base class.

Is This Answer Correct ?    77 Yes 44 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is c++ a dying language?

604


What is the limitation of cin while taking input for character array?

1466


how to connect with oracle 9i with server in socket program in c/c++

1857


What is #include c++?

581


What is a loop? What are different types of loops in c++?

608






What is ostream in c++?

582


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

578


What are c++ stream classes?

570


What is meant by a delegate?

626


What data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack

601


What is stoi in c++?

710


Evaluate the following expression as C++ would do :8 * 9 + 2 * 5 a) 82 b) 79 c) 370 d) list

622


Write my own zero-argument manipulator that should work same as hex?

594


In inline " expression passed as argument are evalauated once " while in macro "in some cases expression passed as argument are evaluated more than once " --> i am not getting it plz help to make me understand....

1958


What is the difference between *p++ and (*p)++ ?

787