public override bool Equals(object obj) { if (obj == null) { return(false); } Exam temp = (Exam)obj; return(Name.Equals(temp.Name) && Estimate.Equals(temp.Estimate) && Date.Equals(temp.Date)); }