Question: Revise the preceding exercise so that the findScore method returns 1 if permission is false. Add an another method named getPermission(String name) that returns 1,
Revise the preceding exercise so that the findScore method returns –1 if permission is false. Add an another method named getPermission(String name) that returns 1, 0, or –1. The method returns 1 if the student is in the Scores table and permission is true, 0 if the student is in the Scores table and permission is false, and –1 if the student is not in the Scores table.
Step by Step Solution
3.30 Rating (179 Votes )
There are 3 Steps involved in it
Here is an example of how the revised findScore and getPermission methods could be implemented publi... View full answer
Get step-by-step solutions from verified subject matter experts
