class ExampleStaticVariable {
    public static void main(String[] arg) {
        Foo.foo = 10;
        Bar.bar = Bar.foo + 2;
        System.out.print("Foo.fooM():");  Foo.fooM();
        System.out.print("Bar.barM():");  Bar.barM();
    }
}
class Foo {
    static int foo;
    static void fooM() {
        System.out.println(" foo=" + foo);
    }
}
class Bar extends Foo {
    static int bar;
    static void barM() {
        System.out.println(" foo=" + foo + ", bar=" + bar);
    }
}

