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.
What is meant by constructor in Java?
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.