有两个Java源程序文件 其中 第一个文件中的源代码如下所示。 package yours; class Adder { prote
已帮助 人
有两个Java源程序文件,其中,第一个文件中的源代码如下所示。 package yours; class Adder { protected int x; int y; protected int increase(int basic) { return basic+x; } } 第二个文件中的源代码如下所示。 package other; import yours; class Unknown { Adder a=new Adder(); a.increase(3); } 红色的语句是合法的。()

回答
共1条回复-
错误
