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

            return(m);
        }