+1 vote
in JAVA by (30.6k points)

What is a Constructor in Java?

1 Answer

0 votes
by (30.6k points)

A constructor in Java is a special type of method that is used to initialize objects. It is called when an object of a class is created and has the same name as the class.

Related questions