【名词&注释】
自定义(user-defined)、数据项(data item)、运算符(operator)、列表框(list box)、标识符(identifier)、字符串连接(string links)
[单选题]C#中TestClass为一自定义类,其中有以下属性定义:publicvoidProperty{…}开卷考使用以下语句创建了该类的对象,并使变量obj引用该对象:TestClassobj=newTestClass();那么,可通过什么方式访问类TestClass的Property属性?()
A. Obj,Property
B. MyClass.Property
C. obj::Property
D. obj.Property()
查看答案&解析
查看所有试题
学习资料:
[单选题]字符串连接(string links)运算符包括&和()。
A. +
B. -
C. *
D. /
[单选题]下列标识符(identifier)命名正确的是()
A. X_25
B. 4foots
C. &Years
D. val(7)
[单选题]引用ListBox(列表框)当前被选中的数据项应使用()语句
A. ListBox1.Items[ListBox1.Items.Count]
B. ListBox1.Items[ListBox1.SelectedIndex]
C. ListBox1.Items[ListBox1.Items.Count-1]
D. ListBox1.Items[ListBox1.SelectedIndex-1]
本文链接:https://www.51bdks.net/show/8lp7qw.html