title: two class with common methods and properties
body: <p>I have two classes.</p>
  
  <p>Class A:</p>
  
  <pre><code>class A() {
      public void QQ() {}
      public void WW() {}
  }
  </code></pre>
  
  <p>And Class B:</p>
  
  <pre><code>class B() {
      public void QQ() {}
      public void WW() {}
  }
  </code></pre>
  
  <p>They don't share the same interface or abstract class.
  A and B have two distinct hierarcy and I can't change that at the moment.</p>
  
  <p>I want to write  a single procedute that works for A and B and use QQ and WW methods.</p>
  
  <p>Can I do that? Can you suggest any document I can study?</p>
  
  <p>Tanks</p>