Is it possible to have Virtual Constructor? If yes, how? If not, Why not possible?

Total Post:505

Points:2525

 2132  View(s)
Ratings:
Rate this:
  1. Is it possible to have Virtual Constructor? If yes, how? If not, Why not possible?

    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.

Answer