import examples.*;

public class Client2 extends Privacy {

    protected void protM() {
        super.protM();
        prot = 3;
    }

    public void pubM() {
        super.pubM();
    }

    public void testPrivacy() {
        Client2 o = new Client2();
        int i = 3;

        i = o.prot;
        o.prot = i;

        i = o.pub;

        o.protM();
        o.pubM();

        // Note: some below is illegal
        Privacy p = new Privacy();

        i = p.prot;
        p.prot = i;

        i = p.pub;

        p.protM();
        p.pubM();
    }
}
