public interface A { <br /> String DEFAULT_GREETING = “Hello World”; <br /> public void method1(); <br /> } <br /> A programmer wants to create an interface called B that has A as its parent. Which interface declaration is correct?() <p> public interface A { <br /> String DEFAULT_GREETING = “Hello World”; <br /> public void method1(); <br /> } <br /> A programmer wants to create an interface called B that has A as its parent. Which interface declaration is correct?() </p>
A、A. public interface B extends A {}
B、B. public interface B implements A {}
C、C. public interface B instanceOf A {}
D、D. public interface B inheritsFrom A {}