Marc,
Prgram is about Inner classes on pg 660/666
and we have to tell which one out of given options creates an anonymous class from within class Bar.
I coldnt understand why answer is B and C.
class Boo{
Boo(){}
Boo(
String s){} }
class Bar extends Boo{
Bar(){}
Bar(String s){ super(s);}
void zoo(){.........insert code here.}}
Options:
a. Boo f=new Boo(24);
b. Boo f=new Bar(){}; -- correct anser
c. Boo f =new Boo(){String s;} --correct anser
d. Boo f=new Boo(String s){}; //
e. Boo f=new Boo.Bar(String s){};
HOw b and c are creating anonymous inner (sub) classes here ,
how d is not.we have 1-arg constructor also
,