We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce1b9c2 commit 5e840b7Copy full SHA for 5e840b7
Interface/Interface3.java
@@ -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
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