java 一个类调用另一个类的方法

在要调用的类B中对调用类A实例化(
在B中:
A a = new A();
a.function();
原文地址:https://www.cnblogs.com/tianzijiaozi/p/7487111.html