// INHERIT14 // can't make method modifiers more restrictive! class A { public int x; public int blah1() { return x; } protected void blah2() {} void blah3() {} } class B extends A { private int x; private int blah1() { return x+1; } void blah2() {} private void blah3() {} } // Java will complain about the variables and methods, // but not the constructors