Пример #1
0
 public Student(int p1, string p2, School p3)
 {
     this.Nr     = p1;
     this.Name   = p2;
     this.School = p3;
 }
Пример #2
0
        public override bool Equals(object obj)
        {
            School s = obj as School;

            return(s.Name == this.Name && s.Location == this.Location);
        }