What is default constructor and what is the advantage of having it?

The default constructor is used to provide the default values to the object like 0, null, etc., depending on the type .

Sizin İçin Seçtik  What are different types of constructors explain with example?

Leave a Reply

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