A.CATⅢ
B.CATⅡ
C.CATⅠ
D.CATⅣ
第1题
A.CATⅢ
B.CATⅡ
C.CATⅠ
D.CATⅣ
第2题
A.CATⅢ
B.CATⅡ
C.CATⅠ
D.CATⅣ
第3题
A、A.Cat cat = (Cat)new Animal();
B、B.Animal a = new Cat(); Cat cat = (Cat) a;
C、C.Animal animal = new Cat();
D、D.Animal a = new Dog(); Cat cat = (Cat) a;
第4题
有以下类定义,运行后 abstract class Animal{ abstract void say(); } public class Cat extends Animal{ public Cat(){ System.out.printf("I am a cat"); } public static void main(String[] args) { Cat cat=new Cat(); } }
A、I am a cat
B、Animal能编译,Cat不能编译
C、Animal不能编译,Cat能编译
D、编译能通过,但是没有输出结果
第6题
The author wants to write ______.
A.a clog book
B.a cat book
C.a dog and cat book
D.a dog and a cat book
第7题
What conditions does the writer make when she gives a cat a home?
A.She expects the cat to obey her.
B.The cat must observe a few necessary rules.
C.The cat must accept the writer's authority.
D.The cat will stay only if she behaves herself.
第8题
A、public void Cat() { … }
B、public Cat(string name) { … }
C、public cat(string name, int age) { … }
D、public Cat() { … }
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!