Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / shakti singh

A virtual function in a base class which is equated to 0 is called a pure virtual function.The class then is called a Abstract Base Class or in general ABC.No object of such class can be instantiated.ABC in general acts as an interface and implement the general flow of algorithm.A pure virtual function must be overloaded in the derived class otherwise the compiler will throw an error.
A pure virtual function do nothing and it is not concerned with the implementation detail.

Is This Answer Correct ?    13 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is isdigit c++?

1105


Explain bubble sorting.

1086


What is null pointer and void pointer and what is their use?

1100


When should overload new operator on a global basis or a class basis?

1077


What is the use of endl in c++?

1020


Specify some guidelines that should be followed while overloading operators?

1205


How can an improvement in the quality of software be done by try/catch/throw?

1063


How do you declare A pointer to function which receives an int pointer and returns a float pointer

1211


Can a class be static in c++?

1092


Explain function overloading and operator overloading.

1068


Describe Trees using C++ with an example.

1150


You want to link a c++ program to c functions. How would you do it?

998


What do you mean by funtion prototype?

1082


What are the two types of polymorphism?

1135


How did c++ start?

1088