Home | Gaming | Programming | Play Online | Contact | Keyword Query
Games++ Games & Game Programming

GAMES++
Games++ Home
Games++ Gaming
Games++ Programming
Beta Testing Games
Free Online Games
Hints & Cheats

BROWSER UTILITIES
E-mail This Page
Add to Favorites

SITE SEARCH

Web Games++

AFFILIATES
Cheat Codes
Trickster Wiki
Game Ratings
Gameboy Cheats
PlayStation Cheats
BlackBerry Games
Photoshop Tutorials
Illustrator Tutorials
ImageReady Tutorials

ADVERTISEMENT

ADVERTISEMENT

How To Access An Inner Class From Outside

Java How To: Source Code

class Outer 
{
   public class Inner 
   {
      public void hello()
      {
         System.out.println("Hello from Inner()");
      }
   }
}

public class Howto 
{
   public static void main(String[] args) 
   {
      Outer outer = new Outer();
      outer.new Inner().hello();
   }
}

Copyright © 1998-2007, Games++ All rights reserved. | Privacy Policy