This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Getting MEAN with Mongo, Express, Angular, and Node and have Simon Holmes on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Inner class or methods Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Inner class or methods" Watch "Inner class or methods" New topic

Inner class or methods

Rachna Chaturvedi

Joined: May 02, 2002
Posts: 21
Hi all,
which is a better Object oriented design - have Inner classes or methods ., if the same result can be obtained using either of the ways .
I have come up with this query while i was designing my gui and event handlers for FBN.
Thanks in Advance
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17262

Well when it comes to listeners, I tend to have Anonymous inner classes, that call methods in the class.

Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
subject: Inner class or methods