Is it possible to add an object of a class in the class header?
<p>I was wondering if there is a way to put objects of a class in a header?</p>

<p>For example:</p>

<pre><code>class MyClass {

} object;  
</code></pre>

<p>If I made an object there and then include the header in more than one source file, I get an error of multiply defined symbols found. I am new so don't understand fully everything. </p>

<p>Also, I want to do something like <code>object.function()</code> inside of a different function which is a member of a different class how can I do that?</p>
