class Boo { Boo(String s) { } Boo() { } } class Bar extends Boo { Bar() { } Bar(String s) {super(s);} void zoo() { // insert code here } }which one create an anonymous inner class from within class Bar? - Study24x7
Social learning Network
02 Mar 2023 04:01 PM study24x7 study24x7

class Boo { Boo(String s) { } Boo() { } } class Bar extends Boo { Bar() { } Bar(String s) {super(s);} void zoo() { // insert code here } }which one create an anonymous inner class from within class Bar?

A

Boo f = new Boo(24) { };

B

Boo f = new Bar() { };

C

Bar f = new Boo(String s) { };

D

Boo f = new Boo.Bar(String s) { };

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles