Computer Science, asked by anuj, 1 year ago

What is constructor? JAVA

Answers

Answered by ziniyakhan
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