namespace utility { using System; using System.Threading; public class DateTest { public static void Main() { Date tDate = new DateImpl(2001, 3, 13); int tYear = tDate.Year; tDate.Year = 2002; Console.WriteLine(tDate); DateImpl tDateC = new DateImpl(2001, 3, 13); DateImpl tTodayC = new DateImpl(2001, 3, 13); Date tDateI = new DateImpl(2001, 3, 13); Date tTodayI = new DateImpl(2001, 3, 13); object tDateO = new DateImpl(2001, 3, 13); object tTodayO = new DateImpl(2001, 3, 13); Console.WriteLine("tDateC.Equals(tTodayC): " + (tDateC.Equals(tTodayC))); Console.WriteLine(" tDateC==tTodayC: " + (tDateC==tTodayC)); Console.WriteLine("tDateI.Equals(tTodayI): " + (tDateI.Equals(tTodayI))); Console.WriteLine(" tDateI==tTodayI: " + (tDateI==tTodayI)); Console.WriteLine("tDateO.Equals(tTodayO): " + (tDateO.Equals(tTodayO))); Console.WriteLine(" tDateO==tTodayO: " + (tDateO==tTodayO)); Thread.Sleep(6000); } } }