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 member data be public?

607


What is a string example?

565


Is it possible for the objects to read and write themselves?

655


What is size of string in c++?

570


What is ios class in c++?

590






Why are pointers used?

588


Why is it necessary to use a reference in the argument to the copy constructor?

641


What is c++ and its features?

583


Write a Program for dynamically intialize a 2 dimentional array. Eg:5x20, accept strings and check for vowels and display the no.finally free the space allocated .

702


Carry out conversion of one object of user-defined type to another?

626


what is upcasting in C++?

731


What are the various arithmetic operators in c++?

580


How do c++ struct differs from the c++ class?

599


What is the object serialization?

641


Why iomanip is used in c++?

645