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?



How to create a pure virtual function?..

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

More C++ General Interview Questions

Write a C++ program which will compute the volume of a sphere or a cylinder after prompting the user to type the first character for the shape name.

0 Answers   An-Najah National University,


What is ctime c++?

0 Answers  


What is a .h file c++?

0 Answers  


What is the disadvantage of using a macro?

0 Answers  


What is lazy initialization in c++?

0 Answers  


What are the debugging methods you use when came across a problem?

1 Answers  


Is c++ a pure oop language?

0 Answers  


What are the various oops concepts in c++?

0 Answers  


What are different types of polymorphism supported by C++

2 Answers   CA, GameLoft,


Disadvantages of c++

8 Answers   HCL,


Is there a sort function in c++?

0 Answers  


What is meant by entry controlled loop?

0 Answers   Agilent, ZS Associates,


Categories