Open matthewcreek opened 3 months ago
Relevant link
Text code shows:
public override boolean Equals(object toBeCompared) { if (toBeCompared.GetType() != this.GetType()) { return false; } Student s = toBeCompared as Student; return s.StudentId == StudentId; }
C# return type should be bool and not boolean
bool
boolean
Suggested change:
public override bool Equals(object toBeCompared) { if (toBeCompared.GetType() != this.GetType()) { return false; } Student s = toBeCompared as Student; return s.StudentId == StudentId; }
Relevant link
Text code shows:
C# return type should be
bool
and notboolean
Suggested change: