Hi,
I ahve come across this problem in Kathy & Bert's CD. I could not understand a bit and I am getting error when i try to compile the program also. Can anyone explain?
Question: Given the following:
Which two would create and anonymous inner class from within the class Bang?
Choices:
A. Bang b = new Bing("Foo") { };
B. Bing b = new Bing(343) { };
C. Bing b = new Bing(){"Foo";};
D.Bing b = new Bang() { };
E. Bing b = new Bing.Bang("Foo") { };
Answer : C & D.
I feel answer A and D are correct; C is not even working for me!!!
Please explain. Moreover thsi software is not good at all. It doesn't let me do even copy and paste at all. It even declares that i failed when scored 77%.
Regards,
Raman
Edited by Corey McGlone: Added CODE Tags
[ March 11, 2004: Message edited by: Corey McGlone ]