已知myCircle是一个类类型,下面语句不正确的是: A: myCircle []ClassArray=new myCircle[10]; B: myCircle [][]ClassArray=new myCircle[10][10]; C: myCircle []ClassArray; ClassArray=new myCircle[4]; D: myCircle [][]ClassArray; ClassArray=new myCircle[4*2];
已知myCircle是一个类类型,下面语句不正确的是: A: myCircle []ClassArray=new myCircle[10]; B: myCircle [][]ClassArray=new myCircle[10][10]; C: myCircle []ClassArray; ClassArray=new myCircle[4]; D: myCircle [][]ClassArray; ClassArray=new myCircle[4*2];
已知自定义类的名字为MyCircle,那么定义一个名字为c1的MyCircle对象的语句为( ) A: int MyCircle; B: MyCircle c1( ) ; C: MyCircle c1=new MyCircle( ); D: MyCircle c1=MyCircle( );
已知自定义类的名字为MyCircle,那么定义一个名字为c1的MyCircle对象的语句为( ) A: int MyCircle; B: MyCircle c1( ) ; C: MyCircle c1=new MyCircle( ); D: MyCircle c1=MyCircle( );
欲构造Circle类的一个实例,此类实现了Comparable接口,下列方法正确的是( )。 A: Circle myCollect= new Object(); B: Comparable myCircle = new Comparable (); C: Circle myCircle= new Comparable (); D: Comparable myCircle = new Circle ();
欲构造Circle类的一个实例,此类实现了Comparable接口,下列方法正确的是( )。 A: Circle myCollect= new Object(); B: Comparable myCircle = new Comparable (); C: Circle myCircle= new Comparable (); D: Comparable myCircle = new Circle ();
已知类myCircle中包含成员函数void display(),在定义了myCircle [][]d; d = new myCircle[10][8];并完成d的初始化的前提下,下面语句不正确的是: A: for (int i = 0; i < 10; i++) { for (int j = 0; j < 8; j++) { d[i][j].display(); } } B: for (int i = 0; i <= 10; i++) { for (int j = 0; j < =8; j++) { d[i][j].display(); } } C: for (int i = 9; i <=0; i--) { for (int j = 7; j < =0; j--) { d[i][j].display(); } } D: for (int i = 9; i <=0; i--) { d[i][2].display(); }
已知类myCircle中包含成员函数void display(),在定义了myCircle [][]d; d = new myCircle[10][8];并完成d的初始化的前提下,下面语句不正确的是: A: for (int i = 0; i < 10; i++) { for (int j = 0; j < 8; j++) { d[i][j].display(); } } B: for (int i = 0; i <= 10; i++) { for (int j = 0; j < =8; j++) { d[i][j].display(); } } C: for (int i = 9; i <=0; i--) { for (int j = 7; j < =0; j--) { d[i][j].display(); } } D: for (int i = 9; i <=0; i--) { d[i][2].display(); }
已知类myCircle中包含成员函数void display(),在定义了myCircle [][]d; d = new myCircle[10][8];并完成d的初始化的前提下,下面语句不正确的是: A: for (int i = 0; i < 10; i++) { for (int j = 0; j < 8; j++) { d[i][j].display(); } } B: for (int i = 0; i <= 10; i++) { for (int j = 0; j < =8; j++) { d[i][j].display(); } } C: for (int i = 9; i <=0; i--) { for (int j = 7; j < =0; j--) { d[i][j].display(); } } D: for (int i = 9; i <=0; i--) { d[i][2].display(); }
已知类myCircle中包含成员函数void display(),在定义了myCircle [][]d; d = new myCircle[10][8];并完成d的初始化的前提下,下面语句不正确的是: A: for (int i = 0; i < 10; i++) { for (int j = 0; j < 8; j++) { d[i][j].display(); } } B: for (int i = 0; i <= 10; i++) { for (int j = 0; j < =8; j++) { d[i][j].display(); } } C: for (int i = 9; i <=0; i--) { for (int j = 7; j < =0; j--) { d[i][j].display(); } } D: for (int i = 9; i <=0; i--) { d[i][2].display(); }