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  50 tane Bitcoin ne kadar?

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  Does C# have copy constructor?

Leave a Reply

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