Can you have multiple constructors C#?

In C#, default constructor is nothing but a constructor which takes no parameter. So you cannot create a multiple constructor without any parameter which means you cannot have multiple default constructor, but you can have multiple constructor for a class .

Sizin İçin Seçtik  Bıttım sabunu ne kadar sürede etki eder?

Leave a Reply

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

Can you have multiple constructors C#?

In C#, default constructor is nothing but a constructor which takes no parameter. So you cannot create a multiple constructor without any parameter which means you cannot have multiple default constructor, but you can have multiple constructor for a class .

Sizin İçin Seçtik  How do you call constructor from another class?

Leave a Reply

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