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  How many constructors can a class have C#?

Leave a Reply

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