1 class Boo{
2 Boo(
String s){}
3 Boo(){}
4 }
5 class Bar extends Boo{
6 Bar(){}
7 Bar(String s){super(s);}
8 void zoo() {}
9 Boo f= new Boo() {String s;};
10 }
Does code in line no. 9,creates an instance of Boo or an instance of subclass of Boo?
This is Q.no 4 in self
test on inner classes from Kathy&Bert book.