how should I pass the reference of an object to another object of the same class? : I have a three classes A , B and C.
I had created an object of class B(say XYZ1) inside A and had instantiated it with some values.
How should I create an object of Class B(say XYZ2) inside C and pass the reference of XYZ1 to the newly created object XYZ2. So that XYZ2 also carries the same values as XYZ1?

Thank you I hope I have not made the question very confusing. :P