public class Date
{
  // Constructors with different numbers of parameters.
  // Day, month, and year will default to current values if not provided.
    public Date()                     { ... }
    public Date(int day)              { ... }
    public Date(int month, int day)   { ... }
    public Date(int month, int day, int year)   { ... }

}

 

public class Student
{
  // Constructors for Student object.  Name will be blank if not provided.
    public Student()                   { ... }
    public Student(String name)        { ... }

  // Methods for the Student class.  The day specifies when the action
  // should be done.
    public void readTextbook(Date day) { ... }
    public void reviewDiscQuestions(Date day)  { ... }
    public void readMiniLabConcepts(Date day)  { ... }
}

 

  1. Construct a date object representing tomorrow by specifying the day of the month (the month and year will default to the current month and year if left unspecified). Assign the object to a variable of the appropriate type.
  2. Construct a student object with your name. Assign the object to a variable of the appropriate type.
  3. Write code to have the student: