forked from natural/java2python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathClass10.java
More file actions
30 lines (21 loc) · 477 Bytes
/
Class10.java
File metadata and controls
30 lines (21 loc) · 477 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
interface Base {
int move(int dx, int dy);
}
interface Extra {
}
class Class10 implements Base, Extra {
public int move(int dx, int dy) {
return 0;
}
public void other(Class10 v) {
}
public void other() {
}
public static void main(String[] args) {
Class10 i = new Class10();
System.out.println(i.getClass().getName());
for (Class c : i.getClass().getInterfaces()) {
System.out.println(c.getName());
}
}
}