public interface A { String DEFAULT_GREETING = “Hello World”; public void method1(); } A programmer wants to create an interface called B that has A as its parent. Which interface declaration is correct?()
- A、 public interface B extends A {}
- B、 public interface B implements A {}
- C、 public interface B instanceOf A {}
- D、 public interface B inheritsFrom A {}
正确答案:A
答案解析:有
微信扫一扫手机做题