package shop.app;

import shop.core.AccountBase;

public class BrokenAccess extends AccountBase {
    void trap() {
        AccountBase other = new AccountBase();
        System.out.println(other.prot);        // protected, through a plain AccountBase reference
        System.out.println(other.protectedMethod());
        System.out.println(this.pkg);          // package-private in another package
        System.out.println(this.priv);         // private
    }
}
