CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: inner class

  1. #1
    Join Date
    Sep 2003
    Posts
    3

    Unhappy inner class

    hi all..

    i am a new one in java ...

    is there a way to call outer class from an inner class

    thanx all

  2. #2
    Join Date
    Jan 2002
    Location
    Halifax, NS, Canada
    Posts
    985
    Sure,

    from the inner class,
    Code:
    OuterClass.this.myMethod();
    where OuterClass is the name of your Outer Class.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured