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 malloc, calloc and realloc?

0 Answers   Alter,


How to invoke a C function using a C++ program?

0 Answers   Alter,


How will you print a list of all unique words from a string which may contain repeated words?

0 Answers   Adobe,


What Is A Default Constructor in C++ ?

0 Answers   Amazon,


How can you force the compiler to not generate them?

0 Answers   Amazon,


Define type casting in C++.

0 Answers   Amdocs,


What is the meaning of the following declaration: int *const *const *i?

0 Answers   Adobe,


Tell us the size of a float variable.

0 Answers   Accenture,


In C++ what do you mean by Inheritance?

0 Answers   Accenture,


Find the Factorial of a number using a program.

0 Answers   Accenture,


Name the operators that cannot be overloaded.

1 Answers   Wipro,


Write a syntax and purpose of switch statement.

0 Answers   Agilent,


Categories