FileDocCategorySizeDatePackage
Alpha.javaAPI DocExample1158Tue Dec 12 18:58:16 GMT 2000One

Alpha

public class Alpha extends Object

Fields Summary
private int
iamprivate
int
iampackage
protected int
iamprotected
public int
iampublic
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

        Alpha a = new Alpha();
        a.privateMethod();    //legal
        a.packageMethod();    //legal
        a.protectedMethod();  //legal
        a.publicMethod();     //legal

        System.out.println("iamprivate: " + a.iamprivate);       //legal
        System.out.println("iampackage: " + a.iampackage);       //legal
        System.out.println("iamprotected: " + a.iamprotected);   //legal
        System.out.println("iampublic: " + a.iampublic);         //legal
    
voidpackageMethod()

   //package access
        System.out.println("iampackage Method");
    
private voidprivateMethod()



    //methods
          
        System.out.println("iamprivate Method");
    
protected voidprotectedMethod()

        System.out.println("iamprotected Method");
    
public voidpublicMethod()

        System.out.println("iampublic Method");