title: Comparing objects
body: <p>I have a class it contains some string members, some double members and some array objects. </p>
  
  <p>I create two objects of this class, is there any simplest, efficient way of comparing these objects and say their equal? Any suggestions? </p>
  
  <p>I know how to write a compare function, but will it be time consuming. </p>