Can we override the constructor?

Constructor looks like method but it is not. It does not have a return type and its name is same as the class name. But, a constructor cannot be overridden.

Sizin İçin Seçtik  How many constructors can a class have C#?

Leave a Reply

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