单项选择题
下列关于类和对象的叙述中,错误的是( )。
A.一个类只能有一个对象
B.对象是类的具体实例
C.类是对某一类对象的抽象
D.类和对象的关系是一种数据类型与变量的关系
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
以下程序的正确运行结果是( )。 #include<iostream.h> int fun(int); void main() int a=2,i; for(i=0;i<3;i++) cout<<fun(
A.<<end1;
cout<
点击查看答案&解析
单项选择题
下面程序的输出结果是( )。 #include<iostream.h> #include string.h void main() char a[]= Hello Test ,b[]= Test ; strcpy(a,b); cout<<a<<end1;
A.Hello
B.Test
C.Hello Test
D.Hello Test HelloTest
点击查看答案&解析
相关试题
有如下程序: #include<iostream> usi...
有如下程序: #include<iostream.h> ...
有如下类说明: class TestClass int x...
有如下程序: #include<iostream> usi...
以下程序的输出结果是( )。 #include...