// am1.java -- @CopyLeft by tsaiwn@csie.nctu.edu.tw
// Inheritance 就是擴充  extention

public class am1 extends am0 {

     //static protected int nnn;      // enable this statement to test
     static {    // static block is executed when this class loaded
        am0.nnn = 3388;     // the nnn in class am0 is "protected"
        nnn = 123;         // which nnn ?
     }
     // 因為 extends am0, 會把 am0 內所有東東 copy 過來,
     //.. 除了 copy constructor 和 finalizer 之外 
     //.. 所以連 main( ) 也繼承 (就是 copy ) 過來了
     //.. But, the variable nnn in main( ) is the one in the super class am0
     //.. It can be refered as am0.nnn, and
     //.. we can change the value of the nnn in am0 since it is "proteced."
}

