单项选择题

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

相关考题