You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
466 B

6 years ago
  1. // The IncDate class
  2. // Do not make changes to anything other than the body of increment() method
  3. // Your name here
  4. public class IncDate extends Date
  5. {
  6. // copy constructor
  7. public IncDate(Date o)
  8. {
  9. super(o.m_month, o.m_day, o.m_year);
  10. }
  11. // constructor
  12. public IncDate(int month, int day, int year)
  13. {
  14. super(month, day, year);
  15. }
  16. public void addDays(int numDays)
  17. {
  18. // TODO: implement this method
  19. }
  20. }