January 2014
Intermediate to advanced
736 pages
70h 43m
English
The application of Fig. E.14 creates an object of class GradeBook (Fig. E.13) using the int array gradesArray (declared and initialized in line 10 of Fig. E.14). Lines 12–13 pass a course name and gradesArray to the GradeBook constructor. Line 14 displays a welcome message, and line 15 invokes the GradeBook object’s processGrades method. The output summarizes the 10 grades in myGradeBook.
Read now
Unlock full access