public class Thing { }
public class Thing { public Thing() {} }
public class Thing { public Thing(void) {} }
public class Thing { public Thing(String s) {} }
public class Thing { public void Thing() {} public Thing(String s) {} }
第1题:
A.public class MinMax<?> {
B.public class MinMax<? extends Number> {
C.public class MinMax<N extends Object> {
D.public class MinMax<N extends Number> {
E.public class MinMax<? extends Object> {
F.public class MinMax<N extends Integer> {
第2题:
Which two are true?()
第3题:
有如下程序:
include <iostream>
using namespaee std;
class ONE{
public:
virtual void f( ){cout<<"1";}
};
class TWO:public ONE{
public:
TWO( )1 cout<<"2";}
{;
class THREE:public TWO{
public:
virtual void f( )}TWO::f( );cout<<"3";}
};
int main( ){
ONE aa,*P;
TWO bb;
THREE cc;
P=&cc;
p->f( );
return 0;
}
程序的输出结果是______。
第4题:
Given that Thing is a class, how many objects and reference variables are created by the following code?() Thing item, stuff; item = new Thing(); Thing entity = new Thing();
第5题:
In which two cases does the compiler supply a default constructor for class A?()
第6题:
Which two are characteristics of the cost-containment business challenge?()
第7题:
A team of programmers is reviewing a proposed API for a new utility class.After some discussion, they realize that they can reduce the number of methods in the API without losing any functionality.If they implement the new design, which two principles will they be promoting?()
第8题:
有如下程序:
include <iostream>
using namespace std;
class ONE
{
public:
virtual void f() { cout << "1"; }
};
class TWO: public ONE
{
public:
TWO() { cout << "2"; }
};
class THREE: public TWO
{
public:
virtual void f() {TWO::f(); cout << "3"; }
};
int main()
{
ONE aa, *p;
TWO bb;
THREE cc;
p=&cc;
P->f();
return 0;
}
执行上面程序的输出是【 】。
第9题:
Which two allow the class Thing to be instantiated using new Thing()?
第10题:
Which two statements best describe CBWFQ?()