Do we need default constructor in C#?

Constructor is a method in A class which will get executed when its object is created. … In case we don’t provide any constructor in the class, the compiler will create a default constructor for that particular class. So by default there will be one constructor of the class and it’s mandatory.

Sizin İçin Seçtik  Can you lose money staking crypto?

Leave a Reply

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