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  Is Kotlin Java or JavaScript?

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  What are the types of constructor in C++?

Leave a Reply

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