title: will a class without any data member cause memory leak?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/621616/c-what-is-the-size-of-an-object-of-an-empty-class">C++: What is the size of an object of an empty class?</a>  </p>
  </blockquote>
  
  
  
  <p>if the class does not have any data member and just has the mehod, it still has a chance of memory leak. First the class method is reference to class object and object still needs memory to store the address when allocating. Am I correct?</p>
  
  <pre><code>class Empty
  {
    doA()
    {
    }
  };
  </code></pre>