Forum

Number Of Page View:100,000+/Months
LOGIN |New User

Reply

Method-Local Inner Classes
A regular inner class scoped bassiclaly in the inside in other class of the curly braces.but method codde in the out side. this is also defined as a method . we can see in this code :
class MyOuter {
private String a = "Outer";
void doStuff() {
class MyInner {
public void seeOuter() {
System.out.println("Outer a is " + a); 
} // close inner class method
} // close inner class definition
} // close outer class method doStuff()
} // close outer class
Posted By: Name:Rajesh Kr URL: Method-Local Inner Classes