Having a requirement to copy two objects of different types. But these objects are having the same set of elements. One way is to iterate one by one element and copy the elements. But its tedious when class contains large number of elements and also contains Collection elements.
Is there any other better solution is available for this problem ?