using System; namespace Date { class Tester { public void Run() { /******* Lab 1 ******/ // Create an instance of the date object Date oDate = new Date(1968, "July", 18); // 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(); // Change the property values in oDate oDate.Year = 1977; oDate.Month = "October"; oDate.Day = 25; // And then display them oDate.DisplayDate(); /******* Lab 2 ******/ //In order to test the method GetDate 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()); } static void Main() { Tester t = new Tester(); t.Run(); Console.ReadLine(); } } }