题目内容

下列语句声明了一个委托:public delegate int myCallBack(int x);则用该委托产生的回调方法的原型应该是( )。

A. void receive (int x)
B. int receive( )
C. int receive(int num)
D. 不确定的

查看答案
更多问题

已知类Base、MyClass 的定义如下class Base{public void Hello(){System.Console.WriteLine("Hello in Base!");}}class Derived : Base{public void Hello(){System.Console.WriteLine("Hello in Derived!");}}则下列语句在控制台中的输出结果为( )。Derived x = new Derived();x.Hello();

A. Hello in Base!
B. Hello in Derived!
C. Hello in Base!Hello in Derived!
D. Hello in Derived!Hello in Base!

以下类MyClass 的属性Count 属于_____属性。class MyClass{int i;int Count{get{ return i; }}}

A. 只读
B. 只写
C. 可读写
D. 不可读不可写

要让用户选择和浏览要打开的文件,应使用什么对话框?( )

A. OpenFileDialog
B. FolderBrowserDialog
C. FileDialog
D. SaveFileDialog

应用ADO.NET 访问数据时,Connection 对象的连接字符串中Initial Catalog 子串的含义是()

A. Connection 对象连接到的数据库的名称
B. Connection 对象的身份验证信息
Connection 对象的最大连接时间
D. Connection 对象使用的缓存大小

答案查题题库