Hi Im writing my first program using methods and objects and constructors. I am supposed to validate a date using a daterec driver program that has the constructor with a default date of today, a constructor that accepts the user inputs for month day and year and my validate method which checks to see if date is valid and a tostring method to convert the date into a string and print which i have done for the most part. the problem is the program I need to write to test this daterec class. I have to create three objects one named today and one anyday created w no arguments and display aa valid date, then also a noday object which displays invalid dates. I have an example but I am confused on passing the information as well as the code to do it
I would like some examples of how for example to print the dateREC and print the 1, 1 2008 with the object today I dont know what I need to get it over there please help. I also want to take the inputs from th user validate or invalidate the date and print with the anyDay or noDay objects.
Edit by mw: Added
Code Tags and removed SHOUTING from subject line.
[ February 05, 2008: Message edited by: marc weber ]