Computer Science, asked by ishakshatriya3, 21 days ago

what would be behaviour if the constructor has a return type?

Answers

Answered by xomom55848
0

Explanation:

uhh to the hai English Mt jharo to

Answered by ZalimGudiya
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