-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathAm.java
More file actions
39 lines (36 loc) · 771 Bytes
/
Am.java
File metadata and controls
39 lines (36 loc) · 771 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
interface X{
void show(); // public abstract void show();
default void disp(){
System.out.println("X Disp");
}
}
interface Y{
void show(); // public abstract void show();
default void disp(){
System.out.println("Y Disp");
}
default strictfp void test(){
float w = 10.2f;
double w2 = 777.22;
}
}
interface Z extends X,Y{
@Override
default void disp(){
X.super.disp();
Y.super.disp();
System.out.println("Z Disp");
}
}
class Z1 implements Z{
@Override
public void show() {
// TODO Auto-generated method stub
}
}
public class Am {
public static void main(String[] args) {
Z1 obj = new Z1();
obj.disp();
}
}