How do you set a default constructor?

Java compiler automatically creates a default constructor (Constructor with no arguments) in case no constructor is present in the java class.

Sizin İçin Seçtik  What is constructor and different types of constructor?

Leave a Reply

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