多項選擇題

class One { 
void foo() {} 
} 
class Two extends One { 
 //insert method here 
} 
Which three methods, inserted individually at line 14, will correctly complete class Two?()

A. int foo() { /* more code here */ }
B. void foo() { /* more code here */ }
C. public void foo() { /* more code here */ }
D. private void foo() { /* more code here */ }
E. protected void foo() { /* more code here */ }

微信掃碼免費搜題