Why Private data member inherited in child class
<p>I have this piece of code</p>

<pre><code>public class Base {
    private int x=10;
     void show(){
         System.out.println(x);
     }

}


public class Child extends Base {

    public static void main(String[] args) {

        Child c1=new Child();
        c1.show();

    }

}
</code></pre>

<p>This piece of code is working fine and output is 10.Can anyone please
Elaborate how this private data member is access in child class.. </p>
