Example

public class ClassA {

private int number = 8;
private String name;

private class InnerClass extends ClassA {
int number = 9;

}
}

Solution Avoid hiding inherited instance variables. This means that no instance variable of the superclass should be overridden by the child class. Consider using the inherited variable.