class X { void doSomething(int a, float b) { } } class Y extends X{ private void doSomething(int a, float b) { } }