posted 17 years ago
My teacher has asked us to take the following class file, Date.java:
...and create 2 private date fields, as I have already done:
He then wants us to create two constructors: one as a default constructor, and the other that accepts the start and end dates of the time period as parameters. The problem is, I don't know how I would go about creating these methods.
I have tried:
...but I get an error saying that it must return something. Maybe I'm going about this completely wrong, anyways. Could someone please shed some light on this?