-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path41 .Interface.java
More file actions
80 lines (62 loc) · 1.31 KB
/
41 .Interface.java
File metadata and controls
80 lines (62 loc) · 1.31 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
package test;
import java.util.Arrays;
import java.util.Scanner;
//import javax.swing.*;
//import java.lang.Math;
//import java.util.Random;
//import java.awt.Color; // abstract window toolkit
//import java.util.Arrays;
//import java.util.ArrayList;
//import java.util.List;
//import java.util.Map;
//import java.util.HashMap;
import java.util.*;
public class main {
// Interface .
// Interface :
//
public static void main(String[] args) {
// TODO Auto-generated method stub
// Declare the Scanner library
Scanner scanner = new Scanner(System.in);
method_4 mth4 = new method_4();
mth4.test1();
mth4.test2();
mth4.test3();
}
}
///// method1 Class
package test;
public interface method_1 {
// implement methods
void test1();
}
///// method2 Class
package test;
public interface method_2 {
void test2();
}
///// method3 Class
package test;
public interface method_3{
void test3();
}
///// method4 Class
package test;
public class method_4 implements method_1,method_2,method_3{
@Override
public void test3() {
// TODO Auto-generated method stub
System.out.println("test3");
}
@Override
public void test2() {
// TODO Auto-generated method stub
System.out.println("test2");
}
@Override
public void test1() {
// TODO Auto-generated method stub
System.out.println("test1");
}
}