Skip to content

Commit 5e840b7

Browse files
authored
Add files via upload
1 parent ce1b9c2 commit 5e840b7

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

Interface/Interface3.java

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
package Interface;
2+
3+
interface A{
4+
void meth1();
5+
void meth2();
6+
}
7+
interface B extends A{
8+
void meth3();
9+
}
10+
/**
11+
* Interface3
12+
*/
13+
class Ifaceclass implements B {
14+
public void meth1(){
15+
System.out.println("Implement meth1()");
16+
17+
}
18+
public void meth2()
19+
{
20+
System.out.println("Implement meth2()");
21+
}
22+
public void meth3() {
23+
System.out.println("Implement meth3()");
24+
}
25+
}
26+
/**
27+
* Interface3
28+
*/
29+
class Interface3 {
30+
public static void main(String[] args) {
31+
Ifaceclass obj=new Ifaceclass();
32+
obj.meth1();
33+
obj.meth2();
34+
obj.meth3();
35+
}
36+
37+
}

0 commit comments

Comments
 (0)