static void Main7() { MyDate d1 = new MyDate(12, 10, 2010); Console.WriteLine(d1.day); d1.day = 21; }
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(); }