單項(xiàng)選擇題

現(xiàn)有: 
1. abstract class Color  { 
2.protected abstract  String getRGB();    
3.  }    
4. 
5. public class Blue extends Color  {    
6.    //insert code here     
7.  } 
和四個(gè)聲明: 
public String getRGB()  {  return "blue";  }     
String getRGB()  {  return  "blue";  ) 
private  String getRGB()  {  return  "blue";  }    
 protected String getRGB()  {  return "blue";  )     
分別插入到第6行,有幾個(gè)可以通過編譯?()    

A.  0
B.  1
C.  2
D.  3

題目列表

你可能感興趣的試題

微信掃碼免費(fèi)搜題