欢迎来到易学考试网 易学考试官网
全部科目 > Java认证考试 > SCJP程序员认证考试

多项选择题

public class MethodOver { 
private int x, y; 
private float z; 
public void setVar(int a, int b, float c){ 
x = a; 
y = b; 
z = c; 
} 
}  
Which two overload the setVar method?()   

    A.  void setVar (int a, int b, float c){ x = a; y = b; z = c; }
    B. public void setVar(int a, float c, int b) { setVar(a, b, c); }
    C. public void setVar(int a, float c, int b) { this(a, b, c); }
    D. public void setVar(int a, float b){ x = a; z = b; }
    E. public void setVar(int ax, int by, float cz) { x = ax; y = by; z = cz; }

点击查看答案&解析

相关考题

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

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