-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmultiple.java
More file actions
39 lines (37 loc) · 842 Bytes
/
multiple.java
File metadata and controls
39 lines (37 loc) · 842 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 abc {
// default void show(){
// System.out.println("Interface 1!!!");
// }
//}
//interface def {
// default void show() {
// System.out.println("Interface 2!!!");
// }
//}
//
//public class multiple implements abc, def {
// public void show(){
// abc.super.show();
// def.super.show();
// }
// public static void main(String[] args) {
// multiple m = new multiple();
// m.show();
// }
//}
interface abc {
final double d=5.85;
final int a=9;
final String s="Naruto";
void display();
}
public class multiple implements abc {
public void display(){
System.out.println("Interface!!!");
System.out.println(d+a+s);
}
public static void main(String[] args) {
multiple m = new multiple();
m.display();
}
}