参考下图和代码,下面哪句话是正确的?( ) public class JungleSimulator { private XXX aVar public void simulate(){ aVar.jump(); } }[img=332x189]17a3da99c27de71.png[/img]
举一反三
- 参考下图和代码,下面哪句话是正确的?( ) public class JungleSimulator { private XXX aVar public void simulate(){ aVar.jump(); } }http://image.zhihuishu.com/zhs/onlineexam/ueditor/201905/f5c2e5a529f0452bbbd9b5e88aa9925c.png
- 参考下图和代码,下面哪句话是正确的?()[img=332x189]17da69ac533a66f.png[/img]public class JungleSimulator{ private XXX aVar public void simulate(){ aVar.jump(); }} A: XXX可以是Frog或Kangaroo,但XXX不能是Fish B: XXX可以是Fish或Kangaroo,但XXX不能是Frog C: XXX可以是Fish或Frog,但XXX不能是Kangaroo D: XXX可以是Frog或Kangaroo或Fish
- 参考下图和代码,下面哪句话是正确的?( )[img=332x189]17869b9fd5b2dff.png[/img]public class JungleSimulator{ private XXX aVar public void simulate(){ aVar.jump(); }} A: XXX可以是Fish或Frog,但XXX不能是Kangaroo B: XXX可以是Frog或Kangaroo或Fish C: XXX可以是Frog或Kangaroo,但XXX不能是Fish D: XXX可以是Fish或Kangaroo,但XXX不能是Frog
- 参考下图和代码,下面哪句话是正确的?()public class Jungl...bbd9b5e88aa9925c.png
- 从下面四段代码中选择出正确的代码段() A: public class Something {public static void main(String[] args) {Other o = new Other();new Something().addOne(o);}public void addOne(final Other o) {o.i++;}}class Other {public int i;} B: public class Something {void doSomething () {private String s = ̶”;int l = s.length();}} C: abstract class Name {private String name;public abstract boolean isStupidName(String name) {}} D: public class Something {public int addOne(final int x) {return ++x; }}