问题描述:
[多选]
若Animal 是Cat,Dog的父类,则下列选项中,正确的是()
A.A.Animal animal = new Cat()
B.B.Cat cat = (Cat)new Animal()
C.C.Animal animal = new Dog()
D.D.Cat cat = (Cat)new Dog()
参考答案:查看无
答案解析:无
☆收藏
答案解析:无
☆收藏
- 我要回答: 网友(216.73.217.21)
- 热门题目: 1.TreeMap的底层是用Tr 2.一般在覆盖时,要同时覆盖ha 3.sort方法中的比较器可以用
