现有:1.abstractclassColor2{2.//insertcodehere3.}4.5.publicclassBlue2extendsColor2{6.publicStringgetRGB(){returnblue;}7.}和4个声明:publicabstractStringgetRGB();abstractStringgetRGB();privateabstractStringgetRGB();protectedabstractStringgetRGB();分别插入到第2行,有多少行可以编译?()A.0B.1C.2D.3
现有:1.abstractclassColor2{2.//insertcodehere3.}4.5.publicclassBlue2extendsColor2{6.publicStringgetRGB(){return"blue";}7.}和4个声明:publicabstractStringgetRGB();abstractStringgetRGB();privateabstractStringgetRGB();protectedabstractStringgetRGB();分别插入到第2行,有多少行可以编译?()
A.0
B.1
C.2
D.3
相关考题:
classBigDogextendsDog{2.//insertcodehere3.}分别插入到第2行,哪二项可以编译?() A.BigDog(){super();this();}B.BigDog(){Stringname=Fido;super();}C.BigDog(){super();Stringname=Fido;}D.privateBigDog(){super();}
1.abstractclassColor2{2.//insertcodehere3.}4.5.publicclassBlue2extendsColor2{6.publicStringgetRGB(){returnblue;}7.}和4个声明:publicabstractStringgetRGB();abstractStringgetRGB();privateabstractStringgetRGB();protectedabstractStringgetRGB();分别插入到第2行,有多少行可以编译?()A.0B.1C.2D.3
现有:1.interfaceAltitude{2.//insertcodehere3.}和4个声明:intHIGH=7;publicintHIGH=7;abstractintHIGH=7;interfaceintHIGH=7;分别插入到第2行,有多少行可以编译?() A.0B.1C.2D.3E.4
2. 创业活动是突破现有的资源约束,利用机会创造价值的过程。