[Solved] Use method from other class like native methods?


Okay several possibilities:

Instantiate A:

A a=new A();
a.xyz();

(you do not want this)

Heredity:

public class B extends A {...}

and

public class A extends ZZZZZ{...}

so you can still extend ZZZZZ;

Interface:

public interface A{...}

public class B extends ZZZZZ implements A{...}

Static Method:

public class A{
  public static void xyz()
  {
    System.out.println("hello");
  }
}

public class B{
  public void callme()
  {
      A.xyz());
  }
}

solved Use method from other class like native methods?