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;  }

时间:2022-10-13 17:54:40 所属题库:SCJP程序员认证考试题库

相似题目