Skip to content

Commit 55371c4

Browse files
Add files via upload
1 parent 647ea1f commit 55371c4

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

InnnerClass9.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
3+
abstract class A<T>{
4+
abstract T show();
5+
}
6+
//Anonymous Inner Class
7+
public class InnnerClass9 {
8+
9+
public static void main(String[] args) {
10+
A<String> a = new A<String>(){
11+
String show(){
12+
return "Hello World";
13+
}
14+
};
15+
System.out.println(a.show());
16+
}
17+
18+
}

0 commit comments

Comments
 (0)