can we use two diffrent object of classes for check equlity of object and how?