![](https://lstatic.shangxueba.com/jiandati/pc/images/pc_jdt_tittleico.png)
若Animal是Cat,Dog的父类,则下列选项中,正确的是()。
A.Animalanimal=newCat()
B.Catcat=(Cat)newDog()
C.Catcat=(Cat)newAnimal()
D.Animalanimal=newDog()
![](https://lstatic.shangxueba.com/jiandati/pc/images/jdt_q_ckda.png)
![](https://lstatic.shangxueba.com/jiandati/pc/images/jdt_panel_vip.png)
![](https://lstatic.shangxueba.com/jiandati/pc/images/jdt_q_wyda.png)
- · 有4位网友选择 B,占比50%
- · 有4位网友选择 A,占比50%
A.Animalanimal=newCat()
B.Catcat=(Cat)newDog()
C.Catcat=(Cat)newAnimal()
D.Animalanimal=newDog()
B.Animala=newDog();Catcat=(Cat)a
C.Animalanimal=newCat()
D.Animala=newCat();Catcat=(Cat)a
B.True True True False
C.True False False True
D.True True True True
A. hypernym
B. synonym
C. homonym
D. hyponyms
A、fprintf(fp,"%f%f",dog,cat);
B、fprintf(dog,cat,"%f%f",fp);
C、fprintf(dog,cat);
D、fprintf(dog,cat,"%f%f");
A、True True False False
B、True True True False
C、True False False True
D、True True True True
A、{‘human’, ‘tiger’, ‘dog’, ‘cat’}
B、[‘human’, ‘tiger’, ‘dog’, ‘cat’]
C、运行出错
D、(‘human’, ‘tiger’, ‘dog’, ‘cat’)
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;
为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!