Modify class Gradebook
(and GradeBookText)
as follows:
- Include a second ‘String’
instance variable that represents the name of the
course’s instructor.
- Provide a set method to change the
instructor’s name and a get method
to retrieve it.
- Modify the constructor to specify two parameters
— one for the course name and one for the
instructor’s name.
- Modify ‘displayMessage’
such that it first outputs the welcome message and course
name, then outputs “This course is presented
by: ” followed by the instructor’s name.
Use your modified class in a test application that
demonstrates the class’s new capabilities.
Pretty straightforward, I hope. If you need some help,
click here. The solution will
be available here and
here the end of
next week’s class.