public override bool Equals(object obj) { MyDate d = (MyDate)obj; if (this.dd == d.dd && this.mm == d.mm && this.yy == d.yy) { return(true); } else { return(false); } }
public Person(string nm, int d, int m, int y) { name = nm; dob = new MyDate(d, m, y); }
public Person() { name = ""; dob = new MyDate(); }
public Person(string nm,int d,int m,int y) { name = nm; dob = new MyDate(d,m,y); }