Consider the following classes...
class MyBaseClass{ void print (String student){ /* lots of code */ } } class Prof extends MyBaseClass{ //1 }
Which of the following methods can be inserted at line // 1 ?
Select 4 options
Correct Options are : A B C D
'protected' is less restrictive than default 'no modifier'.
So choice 3 is valid.
"public abstract void print(String s)" would have been valid if class Prof had been declared abstract.