Computer Science, asked by Nabhanya7102005, 3 months ago

Constructors in java​

Answers

Answered by trishit1111
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 pea4518977
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