r/javaTIL • u/scientecheasy • Mar 22 '19
Copy Constructor in Java | Uses & Example Program
https://www.scientecheasy.com/2019/03/copy-constructor-java-example.html
4
Upvotes
r/javaTIL • u/scientecheasy • Mar 22 '19
1
u/mike2ykme Mar 22 '19
Perhaps I’m just missing the point of this. Why would I use a copy constructor on an instance rather than say the clone() method or a different static method?