title: How to declare a global class object in order to make accessible from all source files
body: <p>How to declare a global class object in order to make accessible from all source files I created a template class</p>
  
  <pre><code>template&lt;class stackElementType &gt;
  class stack {..}
  </code></pre>
  
  <p>I want to declare an object of this class template in main and make it global, in order to access it from another source file other than main, how to do so ?</p>