多做题,通过考试没问题!

Oracle认证考试

睦霖题库>其他计算机考试>Oracle认证考试

Given: Which two methods, inserted independently at line 17, correctly complete the Sales class?()

  • A、double getSalesAmount() { return 1230.45; }
  • B、public double getSalesAmount() { return 1230.45; }
  • C、private double getSalesAmount() { return 1230.45; }
  • D、protected double getSalesAmount() { return 1230.45; }
正确答案:B,D
答案解析:
进入题库查看解析

微信扫一扫手机做题