Skip to content

Commit dac7f33

Browse files
authored
Add files via upload
1 parent 8f09d42 commit dac7f33

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Interface/Interface2.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package Interface;
2+
3+
interface Callback1 {
4+
static void call(int person)
5+
{
6+
System.out.println("Call p:" + person);
7+
}
8+
}
9+
10+
class Interface2 implements Callback1 {
11+
public static void main(String[] args) {
12+
Callback1.call(3);
13+
}
14+
}

0 commit comments

Comments
 (0)