网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
详述.NET里class和 struct的异同!
参考答案
更多 “ 详述.NET里class和 struct的异同! ” 相关考题
考题
有如下定义struct person{char name[9];int age;};struct person class[10]={"John",17,"paul",19,"Mary",18,"Adam",16,};根据上述定义,能输出字母M的语句是A.printf("%c\n",class[3].name);B.printf("%c\n",class[3].name[1]);C.printf("%c\n",class[2].name[1]);D.printf("%c\n",class[2].name[0]);
考题
有如下定义: struct person {char name[9];int age;} struct person class[10]={ "John",17, "Paul",19, "Mary",18, "Adam",16}; 能输出字母M的是( )A.printf("%c\n",class[3].name);B.printf("%c\n",class[3].name[1]);C.printf("%c\n",class[2].name[1]);D.printf("%c\n",class[2].name[0]);
考题
a)Can a struct inherit from another struct?(结构体能继承结构体吗)b)Can a struct inherit from another class?(结构体能继承类吗)c)Can a struct be the base of another class?(结构体可以作为一个类的基类吗)d)Can a struct implement an interface?(结构体可以实现一个接口吗)e)What’s the difference between struct and class?(结构体与类有什么区别)
考题
What is the role of the DataReader class in ADO.NET connections?(DataReader在ADO.NET连接中起到什么样的角色)
考题
若有如下定义: struct stu{char name[9];int age;float score;); struct stu class[10]={{"Li",17,67},{"Song",19,80}, {"guo",18,79},{"Zhao",16,69}}; 根据上面的定义,若执行“printf("%s:%d%f",class[3].name,class[3].age,class[3].score);"则输出的正确结果是( )。A.Song:19,80.000000B.Zhao:16,69.000000C.Li:17,67Song;19,80D.guo:18,79Zhao;16,69
考题
根据下述定义,能输出字母M的语句是( )。struct person { char name[9]; int age;}class[10]={"Johu",17,"Paul",19,"Mary",18,"Adam",16};
A、prinft("%c\n",class[3].nane);B、pfintf("%c\n",class[3].name[1]);C、prinft("%c\n",class[2].name[1]);D、printf("%c\n",class[2].name[0])
考题
Which class defines the contract that ASP.NET implements to provide membership services using custom membership providers?()A、FormsAuthenticationB、RoleProviderC、SqlRoleProviderD、MembershipProvider
考题
You are creating a Windows Forms application by using the .Net Framework 3.5.You plan to design a composite control for the application.You need to derive the control from a base class that supports templates.What should you do?()A、Derive from the Control class.B、Derive from the UserControl class.C、Derive from the ScrollableControl class.D、Derive from the ContainerControl class.
考题
填空题使用class定义的表中,成员的默认访问权限是()的;由struct定义的类中,成员的默认的访问权限是()的。
热门标签
最新试卷
![瑞牛题库 章节练习 历年真题 模拟试卷](http://assets.51tk.com/51_sidebar_right_index.jpg)