网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
类MyClass中,下列哪条语句定义了一个只读的属性Count?
A.privateintCount;
B.privateintcount;publicintCount{get{returncount;}}
C.publicreadonlyintCount;
D.publicreadonlyintCount{get{returncount;}set{count=value;}}
参考答案
更多 “ 类MyClass中,下列哪条语句定义了一个只读的属性Count? A.privateintCount;B.privateintcount;publicintCount{get{returncount;}}C.publicreadonlyintCount;D.publicreadonlyintCount{get{returncount;}set{count=value;}} ” 相关考题
考题
以下类MyClass的属性count属于_____属性.classMyClass{inti;intcount{get{returni;}}}
A.只读B.只写C.可读写D.不可读不可写
考题
类 MyClass 中,下列哪条语句定义了一个只读的属性 Count?A.private int Count;###SXB###B.private int count; public int Count { get{ return count; } }###SXB###C.public readonly int Count;###SXB###D.public readonly int Count { get{ return count; } set{ count = value; } }
考题
以下类MyClass的属性count属于()属性。 class MyClass{ int i; int count{ get{return i; }} }A.只读B.只写C.可读写D.不可读不可写
考题
类 MyClass 中,下列哪条语句定义了一个只读的属性 CountA.private int Count;#B.private int count; public int Count { get{ return count; } }#C.public readonly int Count;#D.public readonly int Count { get { return count; } Set { count = value; } }
考题
类 MyClass 中,下列哪条语句定义了一个只读的属性 CountA.private int Count;#B.private int count; public int Count{ get{ return count; } }#C.public readonly int Count;#D.public readonly int Count{ get{ return count; } set{ count = value; } }
考题
【单选题】类MyClass 中,下列哪条语句定义了一个只读的属性Count?(2 分)A.private int Count;#B.private int count; public int Count{ get{return count;} }#C.public readonly int Count;#D.public readonly int Count { get{ return count;} set{count = value;} }
考题
类 MyClass 中,下列哪条语句定义了一个只读的属性 Count?A.private int Count;#B.private int count; public int Count { get{ return count; } }#C.public readonly int Count;#D.public readonly int Count { get{ return count; } set{ count = value; } }
考题
类 MyClass 中,下列哪条语句定义了一个只读的属性 Count?A.private int Count;#B.public readonly int Count { get { return count; } set { count = value; } }#C.private int count; public int Count { get { return count; } }#D.public readonly int Count;
考题
【单选题】类MyClass 中,下列哪条语句定义了一个只读的属性Count?(3 分)A.private int Count;#B.private int count; public int Count{ get{return count;} }#C.public readonly int Count;#D.public readonly int Count { get{ return count;} set{count = value;} }
热门标签
最新试卷