Computer Science, asked by nups3374, 7 months ago

What is returns type of constructor

Answers

Answered by juraijkhan864
0

Answer:

No, constructor does not have any return type in Java. Constructor looks like method but it is not. It does not have a return type and its name is same as the class name. Mostly it is used to instantiate the instance variables of a class.

Answered by yogeshshrichandratho
1

Answer:

No, constructor does not have any return type in java , constructor looks like method but it is not. it does not have a return type and it's name is same as the class name, Mostly it is used to instantiate the instance variable of a class.

Explanation:

have a great day.

Similar questions