title: Java methods expecting parameters with multiple inheritance
body: <p>I don't know why I can't find an answer to this online.</p>
  
  <p>I have classes that implement multiple methods and I would like to write methods to expect them. I don't know how to do it though or if it's even possible.</p>
  
  <p>E.g:</p>
  
  <pre><code>public void yellAtPet(&lt;? extends Pet implements YellableAt&gt; arg) {
      arg.yellAt("Don't go there!"); 
      arg.pet("Good Boy");
  }
  </code></pre>