Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Inner class or methods

 
Rachna Chaturvedi
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rachna
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well when it comes to listeners, I tend to have Anonymous inner classes, that call methods in the class.
Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic