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  Can I have 2 constructor?

Leave a Reply

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