What is a default constructor where is it used?

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  How do you write a public class in Java?

Leave a Reply

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