Ejemplo n.º 1
0
        public bool IsOlderThan(Student other)
        {
            DateTime firstDate  = Student.GetBirthDate(this.OtherInfo);
            DateTime secondDate = Student.GetBirthDate(other.OtherInfo);

            return(firstDate < secondDate);
        }
Ejemplo n.º 2
0
        public bool IsOlderThan(Student other)
        {
            DateTime firstDate  = this.GetBirthDate();
            DateTime secondDate = other.GetBirthDate();

            return(firstDate > secondDate);
        }
Ejemplo n.º 3
0
 public bool IsOlderThan(Student other)
 {
     DateTime firstDate = this.GetBirthDate();
     DateTime secondDate = other.GetBirthDate();
     return firstDate > secondDate;
 }