Object Oriented Programming using C#
Generic Collections and how to Serialize them
To overcome this problem we need to override the Equals() method defined in the Object class to say these objects are
the same if the Name and DOB are the same.
We can do this as below....
public override bool Equals(object obj)
{
Account a = (Account)obj;
return ( (name==a.Name) && (dateOfBirth==a.DateOfBirth));
}
everyone
deserves
good design
educe
euse
ecycle
R
WORK
WITH
US
© Inter IKEA Systems B.V. 2009
© Inter IKEA Systems B.V. 2009
IKEA.SE/STUDENT
It’s only an
opportunity if
you act on it
+me
Please click the advert