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

// The IncDate class
// Do not make changes to anything other than the body of increment() method
// Your name here
public class IncDate extends Date
{
// copy constructor
public IncDate(Date o)
{
super(o.m_month, o.m_day, o.m_year);
}
// constructor
public IncDate(int month, int day, int year)
{
super(month, day, year);
}
public void addDays(int numDays)
{
// TODO: implement this method
}
}