Home > DeveloperSection > Interviews > Can we have "Virtual Constructors"?

Posted on    November-23-2010 12:00 AM

 1 Answer(s)
  1853  View(s)
Rate this:

Amit Singh

Total Post:565

Posted on    November-23-2010 1:00 AM

constructor cannot be virtual.

:A virtual call is a mechanism to get work done given partial information. In particular virtual allows us to call a function knowing only an interfaces and not the exact type of the object. To create an object you need complete information. In particular you need to know the exact type of what you want to create.

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

Follow MindStick