what would be behaviour if the constructor has a return type?
Answers
Answered by
0
Explanation:
uhh to the hai English Mt jharo to
Answered by
4
Answer:
The constructor cannot have a return type. It should create and return new objects. Hence it would give a compilation error. ... Explanation: Constructor returns a new object with variables defined as in the class.
Similar questions