New course! Every coder should learn Generative AI!
Try a free lesson+ 4
Why constructors have no return type?
Is there any OOP principle for this?
1 Answer
+ 7
Simply spoken: Because they return the object they construct.
Is there any OOP principle for this?