Can we override constructor in C#?

No, you can’t override constructors . The concept makes no sense in C#, because constructors simply aren’t invoked polymorphically. You always state which class you’re trying to construct, and the arguments to the constructor.

Sizin İçin Seçtik  What is type of constructor in object-oriented programming?

Leave a Reply

Your email address will not be published. Required fields are marked *

Can we override constructor in C#?

No, you can’t override constructors . The concept makes no sense in C#, because constructors simply aren’t invoked polymorphically. You always state which class you’re trying to construct, and the arguments to the constructor.

Sizin İçin Seçtik  Which is better Bitdefender Total Security or Kaspersky Total Security?

Leave a Reply

Your email address will not be published. Required fields are marked *