Multiple Choice Question

Quiz Guidelines



Consider the following classes...

class Teacher{
void teach(String student){                    /* lots of code */
}class Prof extends Teacher{             //1

Which of the following methods can be inserted at line //1 ?

Select 4 options

A. public void teach() throws Exception
B. private void teach(int i) throws Exception
C. protected void teach(String s)
D. public final void teach(String s)
E. public abstract void teach(String s)

Q&A Set: