IS IT POSSIBLE TO HAVE VIRTUAL CONSTRUCTOR? IF YES, HOW? IF NOT, WHY NOT POSSIBLE?

Awadhendra Tiwari

Total Post:510

Points:2550
Posted by  Awadhendra Tiwari
 1659  View(s)
Ratings:
Rate this:
  1. Awadhendra Tiwari

    Post:510

    Points:2550
    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

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!