Hi,
I have learned about constructor . I want to know that ,can constructor be virtual in c# if yes/no then give a full explaination of that?
Constructor
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Gomathi PalaniswamyRank #714 · 3.3K reputationPosted Oct 18, 2011, 9:04 AM EDT
VulpesRank #55 · 29.2K reputationPosted Oct 18, 2011, 9:37 AM EDT
Consequently, it would make no sense for them to be virtual because this would imply that they could be overridden by a derived class's constructor.