I have two identical object with both private and public members. I want to compare the two without having to traverse through all of the member one at a time. Is there any way to do this without writing my own function?
Example (psuedocode):
Rectangle rect1, rect2;
{some code here}
if(rect1==rect2) then {code}
Keep in mind that the Rectangle object has (x, y, width, height) memebers.
Example (psuedocode):
Rectangle rect1, rect2;
{some code here}
if(rect1==rect2) then {code}
Keep in mind that the Rectangle object has (x, y, width, height) memebers.