What is returns type of constructor
Answers
Answered by
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
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