Can I have 2 constructor?

There can be multiple constructors in a class . However, the parameter list of the constructors should not be same. This is known as constructor overloading.

Sizin İçin Seçtik  Can you have multiple constructors?

Leave a Reply

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