The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
December 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

why need innerclasses....

Posted by Nagaraju on March 27, 2001 at 3:38 AM

To express the entire implementation of a control-framework application in a single
class, thereby encapsulating everything that�s unique about that implementation. Inner
classes are used to express the many different kinds of action( ) necessary to solve the
problem. the
implementation is completely hidden and can be changed with impunity.
2. Inner classes keep this implementation from becoming awkward, since you�re able to
easily access any of the members in the outer class. Without this ability the code might
become unpleasant enough that you�d end up seeking an alternative.



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us