Skip to content

Commit a2d7995

Browse files
authored
Add files via upload
1 parent c584377 commit a2d7995

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

Interface/Abstractclass2.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package Interface;
2+
abstract class Parent
3+
{
4+
void meth()
5+
{
6+
System.out.println("No abstract method");
7+
}
8+
}
9+
10+
class Child extends Parent
11+
{
12+
13+
}
14+
15+
class Abstractclass2 {
16+
17+
public static void main(String[] args) {
18+
Child c=new Child();
19+
c.meth();
20+
}
21+
}

0 commit comments

Comments
 (0)