C++ accessing container class method
<p>I am learning C++ inheritance and I'm trying to access a container class method.</p>

<p>I've got an <strong>Environment</strong> class that has a public method called <strong>drawText()</strong>.</p>

<p>The <strong>Environment</strong> class has a Robot class <strong>robot</strong> inside it:</p>

<pre><code>robot = new Robot;
</code></pre>

<p>How can I call <strong>drawText()</strong> from inside the <strong>Robot</strong> class?</p>

<p>Thank you in advance!</p>
