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

在如下所示的类Test中,共有()个构造方法。public class Test{? ? private int x;? ? public Test()? ? {? ? ? ? x = 35;? ? }? ? public void Test(double f)? ? {? ? ? ? this.x = (int)f;? ? }? ? public Test(double f)? ? {? ? ? ? this.x = (int)f;? ? }? ? public Test(String s) {}}

  • A.1
  • B.2
  • C.3
提交并查看答案
下一题 上一题
Ke星伙伴们的回答/ 24个回答
关闭
关闭
QQ
交流群
邀请
好友
App
下载
意见
反馈
返回
顶部