Why constructor has no return value?
Why constructor has no return value?
774
14-Oct-2019
Updated on 14-Oct-2019
Om ji mishra
14-Oct-2019So the reason the constructor doesn't return value is because it's not called directly by your code, it's called by the memory allocation and object initialization code in the runtime.