What is constructor of a class?

A constructor in Java is a special method that is used to initialize objects . The constructor is called when an object of a class is created.

Sizin İçin Seçtik  How can we call a constructor from another constructor in Java?

Leave a Reply

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