public class Date
{
public Date() { ... }
public Date(int day) { ... }
public Date(int month, int day) { ... }
public Date(int month, int day, int year) { ... }
}
public class Student
{
public Student() { ... }
public Student(String name) { ... }
public void readTextbook(Date day) { ... }
public void reviewDiscQuestions(Date day) { ... }
public void readMiniLabConcepts(Date day) { ... }
}
- 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.
- Construct a student object with your name. Assign the object to a
variable of the appropriate type.
- Write code to have the student:
- read the textbook reading assignment for tomorrow's date.
- review any discussion questions assigned for tomorrow.
- read over the concepts that are the subject for tomorrow's mini-lab.