Exercise 3_11 - Exercise 3.11 (Modified GradeBook Class)...

This preview shows page 1 - 3 out of 3 pages.

The preview shows page 3 - 3 out of 3 pages.
Exercise 3.11 (Modified GradeBook Class) Modify class Gradebook (fig. 3.10) as follows:a.Include a String instance variable that represents the name of the course’s instructor.b.Provide a set method to change the instructor’s name and a get method to retrieve it.c.Modify the constructor to specify 2 parameters—one for the course name and 1 for theinstructor’s name.d.Modify method displayMessage to output the welcome message and course name, followed by“This course is presented by:” and the instructor’s name.
End of preview. Want to read all 3 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Spring
Professor
SMALL
Tags
Object Oriented Programming, Subroutine, end method, class GradeBook, public class GradeBook

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture