阅读背景:

如何在Java中使用私有方法

来源:互联网 

I am given a class that has a private method say setCoors(int x, int y). The constructor of that class has the setCoors in it too. In a different class, I want to have a method setLocation which calls setCoors. Is this possible? I am given a class that has a private method sa




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: