forked from natural/java2python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInterface0.java
More file actions
31 lines (23 loc) · 450 Bytes
/
Interface0.java
File metadata and controls
31 lines (23 loc) · 450 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
interface B0 {
public void m(int x);
}
interface B1 {
public void m(int x);
}
interface C0 extends B0, B1 {
public void n(int y);
}
class Nothing {};
class Interface0 implements C0 {
public void m(int x) {
System.out.println(x);
}
public void n(int y) {
System.out.println(y);
}
public static void main(String[] args) {
Interface0 i = new Interface0();
i.m(0);
i.n(1);
}
}