In the following code example:
class Parent { int x =5; public Integer aMethod(){ System.out.print(\"Parent.aMthod \"); return x;
Because declaring a variable doesn't inherit. You have two copies of x in the class, one in parent namespace, one in child namespace.