I want to create a boolean method which compares two objects and returns true if equal. At the same time I want this method to compare the values of variables of the same objects and returns true if equal. so far I have two different values one has 3 decimal and other has a double value extended to 7 decimals(needs to be rounded).
eg I have two temp values one is Celsius and other in convrtd_celsius
How can I compare the class of the two objects and at the same time compare their values and I want it to be consolidated into one Boolean method?
Your suggestions would be appreciated.