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


Can we call a virtual function from a constructor?



Can we call a virtual function from a constructor?..

Answer / hrpynux@gmail.com

You can call a virtual function in a constructor, but be careful. ... In a constructor, the virtual call mechanism is disabled because overriding from derived classes hasn't yet happened. Objects are constructed from the base up, “base before derived”.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ Interview Questions

What is the difference between member functions and static member functions?

0 Answers   Alter,


Tell How To Check Whether A Linked List Is Circular ?

1 Answers   IBS, Infosys,


Write a C++ Program to Find whether given Number is Odd or Even.

1 Answers  


Explain the difference between method overriding and method overloading in C++?

0 Answers   Accenture,


Factory Method C++ – How to delete pointers returned by it

0 Answers  


explain the term 'resource acquisition is initialization'?

0 Answers   Amazon,


What are issues if we mix new and free in C++?

0 Answers  


CDPATH shell variable is in(c-shell)

0 Answers   Siemens,


Difference between Call by pointer and by reference.

0 Answers   Adobe,


Declare a pointer to a function that takes a char pointer as argument and returns a void pointer.

0 Answers   Alter,


What are Agilent PRECOMPILERS?

0 Answers   Agilent,


What is an algorithm (in terms of the STL/C++ standard library)?

0 Answers   Amazon,


Categories