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

How to create a pure virtual function?

Answer Posted / hrpynux@gmail.com

You declare a pure virtual function by using a pure specifier ( = 0 ) in the declaration of a virtual member function in the class declaration. Class A is an abstract class. The compiler would not allow the function declarations A g() or void h(A) , declaration of object a , nor the static cast of b to type A .

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by a delegate?

1032


What is polymorphism and its type in c++?

1015


What is static in c++?

1006


Explain virtual class and friend class.

994


Why are arrays usually processed with for loop?

1187


What are guid?

1183


Is dev c++ free?

967


what are the decision making statements in C++? Explain if statement with an example?

1034


Which command properly allocates memory a) char *a=new char[20]; b) char a=new char[20]; c) char a=new char(20.0);

1010


daily Routine of father

1353


C is to C++ as 1 is to a) What the heck b) 2 c) 10

1006


Which software is best for programming?

1096


What are the advantages of early binding?

1012


Does dev c++ support c++ 11?

963


What is the use of map in c++?

1092