Controlling Access to Class Members
<pre><code>class A
{
   private:
           int x;
   public:
           virtual void show()
           {
               cout&lt;&lt;"X: "&lt;&lt;x;
           }
};

class B: public A
{
    public:
           virtual void show()
           {
               cout&lt;&lt;"In class B\n";
               A::show();
           }
};
</code></pre>

<p>My question is about accessibility from a member function. In this example, can we say that member function of B (show() of B) can access X in the class A.</p>
