Constructors in java
Answers
Answered by
5
Answer:
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.
Answered by
1
Answer:
CONSTRUCTOR is a special method that is used to initialize a newly created object and is called just after the memory is allocated for the object. It can be used to initialize the objects to desired values or default values at the time of object creation.
Explanation:
Similar questions