C++ nested classes accessibility
<p>Given the following code <strong>without considering friendship</strong> between two classes:</p>

<pre><code>class OutSideClass
{
...
public:
    int i_pub;
protected:
    int i_pro;
private:
    int i_pri;

    class InSideClass
    {
        ...
        public:
            int j_pub;
        protected:
            int j_pro;
        private:
            int j_pri;
    };
};
</code></pre>

<p>Question 1> Is it true that OutSideClass can ONLY access public members of InSideClass</p>

<p>Question 2> Is it true that InSideClass can access all members of OutSideClass</p>

<p>Please correct me if my understanding is not correct.</p>
