What is constructor? JAVA
Answers
Answered by
3
In Java , constructor is a block of codes similar to method . It is called when an instance of object is created and memory is allocated for the object . It is a special type of method which is used in initialize the object .
Similar questions