public override bool Equals(object other) { Man m = other as Man; return(m == null ? false : m.name == name && m.age == age); }
public static string Surname(Man m) { return(m.name.Substring(m.name.LastIndexOf(' ') + 1)); }
object ICloneable.Clone() { Man m = this as Man; return(m); }