interfaceAnimal{voidsoundOff();}classElephantimplementsAnimal{publicvoidsoundOff(){System.out.println(Trumpet”);}}classLionimplementsAnimal{publicvoidsoundOff(){System.out.println(Roar”);}}classAlpha1{staticAnimalget(Stringchoice){if(choice.equalsIgnoreCase(meateater”)){returnnewLion();}else{returnnewElephant();}}}Whichcompiles?()
A.newAnimal().soundOff();
B.Elephante=newAlpha1();
C.Lion1=Alpha.get(“meateater”);
D.newAlpha1().get(“veggie”).soundOff();
第1题:
现有:
interfaceAnimal{
voideat();
}
//insertcodehere
publicclassHouseCatextendsFeline{
publicvoideat(){}
}
和五个申明
abstractclassFelineimplementsAnimal{}
abstractclassFelineimplementsAnimal{voideat();}
abstractclassFelineimplementsAnimal{publicvoideat();}
abstractclassFelineimplementsAnimal{publicvoideat(){}}
abstractclassFelineimplementsAnimal{abstractpublicvoideat();}
结果为:()
第2题:
The perform. Integrated Change Contorl process is the ultimate responsibility of the(①).Although changes may be initiated verbally,they should be recorded in writtern form. and entered into the (②)system.
①A.resource manager
B.division manager
C.functional manager
D.project manager
②.A.quality management
B.configuration management
C.project manager
D.scope management
参考答案:D,D