Home > DeveloperSection > Interviews > Is it possible to have Virtual Constructor? If yes, how? If not, Why not possible?

Posted on    May-20-2011 1:53 AM

 Visual C++ Visual C++ 
Ratings:
 1 Answer(s)
  1393  View(s)
Rate this:

Awadhendra Tiwari

Total Post:510

Points:2550
Posted on    May-20-2011 12:00 AM

There is nothing like Virtual Constructor. The constructor can’t be virtual as the constructor is a code which is responsible for creating an instance of a class and it can’t be delegated to any other object by virtual keyword means.


Don't want to miss updates? Please click the below button!

Follow MindStick