using System; using DateTest; public class Tester { public void Run() { // Create an instance of the date object Date oDate = new Date(1986, "December", 10); // Create another instance of the date object using // the overloaded constructer Date oDate2 = new Date("May", 12); // Display the values in the first date object oDate.DisplayDate(); // Display the values in the second date object oDate2.DisplayDate(); int intDay = 0; string strMonth = ""; int intYear = 0; // Display the values in the first date object using the GetDate method Console.WriteLine(oDate.GetDate(ref intDay, ref strMonth, ref intYear)); // Show how the GetDate method has changed the local variables by using ref Console.WriteLine("The Date is: " + intDay.ToString() + " " + strMonth + " " + intYear.ToString()); // Change the property values in oDate oDate.Year = 1977; oDate.Month = "September"; oDate.Day = 8; // and then display them oDate.DisplayDate(); } static void Main() { Tester t = new Tester(); t.Run(); Console.ReadLine(); } }