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 / 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

Suppose that data is an array of 1000 integers. Write a single function call that will sort the 100 elements data [222] through data [321].

1398


what is the difference between overloading & overriding? give example.

1099


How many different levels of pointers are there?

1149


Can we use pointers in c++?

1001


What problems might the following macro bring to the application?

980


Why Pointers are not used in C++?

1012


Can we distribute function templates and class templates in object libraries?

1016


What are vtable and vptr?

1076


What are the c++ access specifiers?

1340


Difference between a homogeneous and a heterogeneous container

1089


How are the features of c++ different from c?

1015


What is a pdb file?

938


explain the reference variable in c++?

1015


What is a lambda function c++?

1028


Can I learn c++ in a week?

990