Chương trình đúng hay sai?interface A {public void aMethod();}interface B {public void bMethod();}interface C extends A,B {public void cMethod();}doneTrueFalse

Question

Chương trình đúng hay sai?interface A {public void aMethod();}interface B {public void bMethod();}interface C extends A,B {public void cMethod();}doneTrueFalse
🧐 Not the exact question you are looking for?Go ask a question

Solution 1

Đúng. Trong Java, một interface có thể kế thừa từ nhiều interfaces khác bằng từ khóa extends. Vì vậy, interface C có thể kế thừa từ cả A và B. Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solve study problem. Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solve study problem. Knowee AI StudyGPT is a powerful AI-powered s

tool designed to help you to solve study problem. Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solve study problem. Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solve study problem. Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solve study problem. Knowee AI StudyGPT is a powerful

This problem has been solved

Similar Questions

Chương trình đúng hay sai?interface A {public void aMethod();}interface B {public void bMethod();}interface C extends A,B {public void cMethod();}doneTrueFalse

Chương trình đúng hay sai ?interface A {public void aMethod();}class B implements A{@Overridepublic void aMethod() {}}class C extends B implements A{}

Which interface extends SortedSet to handle retrieval of elements based on closest-match? a. Set b. SortedSet c. NavigableSet d. Collection

In Java, what is the role of the public static void main(String[] args) method? a. Initialization method b. Execution entry point c. Constructor d. Destructor

In the Java Collections Framework (JCF), the Properties class extends ________? a. HashMap b. Hashtable c. TreeMap d. HashSet

1/3