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  Iyi İngilizce öğrenmek için ne yapmalı?

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  Ahtapot karada ne kadar yaşar?

Leave a Reply

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