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

How the keyword struct is different from the keyword class in c++?

0 Answers  


Have you used MSVC? What do you think of it?

2 Answers   Google,


Can class objects be passed as function arguments?

0 Answers   HCL,


Define vptr.

0 Answers  


What is class invariant?

1 Answers  


How do you instruct your compiler to print the contents of the intermediate file showing the effects of the preprocessor?

0 Answers  


State the difference between delete and delete[].

0 Answers  


Write a program to show polymorphism in C++?

0 Answers   Impetus, Verifone,


what is C++ objects?

0 Answers  


. If employee B is the boss of A and C is the boss of B and D is the boss of C and E is the boss of D. Then write a program using the Database such that if an employee name is Asked to Display it also display his bosses with his name. For eg. If C is displayed it should also display D and E with C?

0 Answers  


what you know about c++?

0 Answers   IBS,


what is COPY CONSTRUCTOR and what is it used for?

0 Answers  


Categories