Example #1
0
        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);
            }
        }
Example #2
0
 public Person(string nm, int d, int m, int y)
 {
     name = nm;
     dob  = new MyDate(d, m, y);
 }
Example #3
0
 public Person()
 {
     name = "";
     dob  = new MyDate();
 }
Example #4
0
 public Person(string nm,int d,int m,int y)
 {
     name = nm;
     dob = new MyDate(d,m,y);
 }
Example #5
0
 public Person()
 {
     name = "";
     dob = new MyDate();
 }