title: passing interface or reference to a function as parameter
body: <p>I have wrapper class and I have pass its object to a function.</p>
  
  <pre><code>class wrapper
  {
  /// some functionality
  }
  </code></pre>
  
  <p>What will be better to pass as reference to the class  like </p>
  
  <pre><code>fun(wrapper &amp; ob)
  </code></pre>
  
  <p>or to new Interface that is inherited by wrapper like:</p>
  
  <pre><code>class Interface
  {
  }
   ....
  class wrapper:public Interface
   ...
  fun(Interface&amp; ob)
  </code></pre>