首页 试题广场 > 试题详情
多选题

有一个类,定义如下,如果想在print()方法中调用show()方法,写法正确的有()。
public class Content {
public void show(int x){
x++;
System.out.println(x);
}
public void print(){

  • A.show(4)
  • B.this.show(4)
  • C.Content.show(4)
  • D.以上都正确
提交并查看答案
下一题 上一题
Ke星伙伴们的回答/ 23个回答
关闭
关闭
QQ
交流群
邀请
好友
App
下载
意见
反馈
返回
顶部