-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathqb32.java
More file actions
43 lines (35 loc) · 742 Bytes
/
Copy pathqb32.java
File metadata and controls
43 lines (35 loc) · 742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
interface A {
void methodA();
}
interface B extends A {
void methodB();
}
interface C extends A {
void methodC();
}
interface D extends B, C {
void methodD();
}
class MyClass implements D {
public void methodA() {
System.out.println("Inside methodA");
}
public void methodB() {
System.out.println("Inside methodB");
}
public void methodC() {
System.out.println("Inside methodC");
}
public void methodD() {
System.out.println("Inside methodD");
}
}
public class Main {
public static void main(String[] args) {
MyClass obj = new MyClass();
obj.methodA();
obj.methodB();
obj.methodC();
obj.methodD();
}
}