问题:
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 {}
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?()
● 参考解析
本题暂无解析
相关内容
相关标签