可学答题网 > 问答 > SCJP程序员认证考试题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

public class MethodOver&ens


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;  }
参考答案
参考解析:
分类:SCJP程序员认证考试题库