This question already has answers here: Closed 10 years ago. 开发者_高级运维 Possible Duplicate: How do I copy an object in Java?
This might be a silly question, but... I\'ve been writing a number of classes that utilize non-copyable members.T开发者_运维百科hese classes are never initialized via the copy constructor in my sourc
I know that the compiler sometimes provides a default copy constructor if you don\'t implement yourself. I am confused about what exactly this constructor does. If I have a class that contains other o