C++ I want to do something like Class1.Class2.Fct() : <p>I am new to C++ programming and I need your help:</p>

<p>Let's say I have a class - Class1. Is it possible to have another class (Class2) with (at least) one function that returns (for example) an integer? Here is an example with I want to achive:</p>

<pre><code>std::cout &lt;&lt; "I did it: " &lt;&lt; Class1.Class2.ReturnINTEGER() &lt;&lt; std::endl;
</code></pre>

<p>I need the code to be compatible with GNU G++ compiler. Thanks :).</p>
