DateRec

Hi I am new to this site I have a problem in my DateTest program and it is with the output I know it has to do with the constructors any help would be appreciated I am very new at this please be specfic

What is the output you were expecting, and what is actually being shown?

Liz Lara
Greenhorn

Joined: Feb 16, 2008
Posts: 2

posted Feb 26, 2008 13:21:00

0

These are my instructions for my DateRec program design a program with a main method to test the DateRec class a) Create a local variable named today, and assign it to a new object of the type DateRec created using the current date for month, day, and year. b) Create a local variable named anyDay, and assign it to a new object of the type DateRec created with no arguments. c) Create a local variable named noDay, and assign it to a new object of the type DateRec created with invalid date values. d) Call toString()method for each DateRec object and display the values returned I am basically getting all zeros no values returned except for today returns default constructor from DateRec