Calling outer class function from inner class

Posted by santose on Stack Overflow See other posts from Stack Overflow or by santose
Published on 2010-05-11T06:30:33Z Indexed on 2010/05/11 6:34 UTC
Read the original article Hit count: 152

Filed under:

hi,

I have implemented a nested class in java. And I need to call the outer class method from inner class.

//Code

class outter{
   void show(){
     SOP("outter show");
   }

  class inner{
     void show(){
        SOP("inner show");
     }
  }

}

How can I call the outter method "show".

© Stack Overflow or respective owner

Related posts about java