FileDocCategorySizeDatePackage
AlphaTwo.javaAPI DocExample774Tue Dec 12 18:58:16 GMT 2000Two

AlphaTwo

public class AlphaTwo extends Alpha

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

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

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

        AlphaTwo a2 = new AlphaTwo();
        a2.protectedMethod();     //legal
        System.out.println("iamprotected: " + a2.iamprotected);   //legal