title: Use method from other class like native methods?
body: <p>(newbie in Java) I couldn't find exactly this question on SO. I have project, with two files (phseudo-code):</p>
  
  <p>First Java File (class)</p>
  
  <pre><code>public class A  {
      public void xyz() { System.out.println("hello");}
  }
  </code></pre>
  
  <p>Second Java File (class)  </p>
  
  <pre><code>public class B Extends ZZZZZ {
      public void callme() { 
           xyz();    // &lt;----------------- I want to call in this way, but It cant be done like this.
      }
  }
  </code></pre>
  
  <p>How to make <code>xyz()</code> to call successfully (like as if was defined inside <code>b()</code> class natively !!). </p>
  
  <p>p.s. again, I don't want to call it with classname in front, like this:</p>
  
  <pre><code>a.xyz();
  </code></pre>