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 974b189 commit 3041916Copy full SHA for 3041916
MultipleInheritance.java
@@ -15,10 +15,26 @@ public static void main(String[] args){
15
c.method();
16
17
A a = new A(){
18
+ @Override
19
public void method(){
- System.out.println("HAHhahahahahhaha");
20
+ System.out.println("Hello Method");
21
}
22
};
23
a.method();
24
+
25
+ //annonymous object
26
27
+ new C().method();
28
29
+ new A(){
30
31
+ public void method(){
32
+ System.out.println("I am annonymously created and overriden");
33
+ }
34
+ }.method();
35
-}
36
+}
37
38
39
40
0 commit comments