Rabu, 11 November 2009

INNER CLASS PADA JAVA

package innerclass;

public class Test
{
static class Inner
{
public void m1()
{
System.out.println("hai");
}
}
public static void main(String art[])
{
Test.Inner in =new Test.Inner();
in.m1();
}

}

output:
hai

0 komentar:

Posting Komentar