欢迎来到求知题库网 求知题库官网
logo
全部科目 > Java认证考试 > SCJP程序员认证考试

多项选择题

Given the following interface definition, which definitions are valid?()  
interface I {  
void setValue(int val);  
int getValue(); 
 }   
DEFINITION a:  
(a) class a extends I {  int value;  
void setValue(int val) { value = val; 
}  
int getValue() { 
return value;
 }  
}  
DEFINITION b:  
(b) interface b extends I {  
void increment(); 
 }  
DEFINITION c:  
(c) abstract class c implements I {  
int getValue() {
 return 0; 
}  abstract void increment();  
}  
DEFINITION d:  
(d) interface d implements I {  void increment();  }  
DEFINITION e:  
(e) class e implements I {  int value;  
public void setValue(int val) { value = val; }  }  

    A.Definition a.
    B.Definition b.
    C.Definition c.
    D.Definition d.
    E.Definition e.

点击查看答案&解析

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题