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 {}
Answer:A
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 {}