This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes anonymous inner class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "anonymous inner class " Watch "anonymous inner class " New topic
Author

anonymous inner class

samdeep aarzoo
Ranch Hand

Joined: Jun 09, 2005
Posts: 160
can anybody explain anonymous inner class flavour1 and flavour 2
as given in k&B page 467
Nicky Eng
Ranch Hand

Joined: Mar 26, 2005
Posts: 378
flavour one : creates an anonymous subclass of the specified class type.

flavour two : creates an anonymous implementer of the specified interface type.

as in page 471. hehe.

everything explained in the book is so clear. i wonder why you can't understand. but good luck. i gtg for my "stupid" class.

all the best.


From NickyEng
Diploma in Computer Studies
SCJP 1.4
SCWCD 1.4
Formula 1 app by Maxis (Playbook)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: anonymous inner class
 
Similar Threads
Passing an object to a method.
What is this technique called?
Abstract Class Within an Interface
Inner Class
Anonymous Inner Class