Solved

Which of the Following Possible Modifications Will Fix the Errors

Question 5

Multiple Choice

Which of the following possible modifications will fix the errors in this code? public class Test {
Private double code;
Public double getCode() {
Return code;
}
Protected abstract void setCode(double code) ;
}


A) Remove abstract in the setCode method declaration.
B) Change protected to public.
C) Add abstract in the class declaration.
D) b and c

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions