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  Sıfırdan İngilizce nasıl öğrenilir?

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  Hayat boyu öğrenme ne zaman açılacak?

Leave a Reply

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