class B extends A { void bar() { foo(); } private void foo() { } }