public override bool Equals(object obj) { if (!(obj is Ship)) return false; return (obj as Ship).ShipID.Equals(ShipID); }