现有: interface Data {public void load();} abstract class Info {public abstract void load();} 下列类定义中正确使用Data和Info的是哪项?()
- A、 public class Employee implements Info extends Data { public void load(){/*dosomething*/} }
- B、public class Employee extends Inf.implements Data{ public void load() {/*do something*/} }
- C、public class Empl.yee implements Inf extends Data{ public void Data.1oad(){* do something*/} public void load(){/*do something*/} }
- D、public class Employee extends Inf implements Data { public void Data.1oad() {/*do something*/) public void info.1oad(){/*do something*/} }
正确答案:B
答案解析:有
微信扫一扫手机做题