试题详情
单项选择题有一个类Demo,对与其构造方法的正确声明是()

A、void Demo(int x){…}

B、Demo(int x){…}

C、Demo Demo(int x){…}

D、int Demo(){}

  • B
  • 关注下方微信公众号,在线模考后查看

热门试题