问题描述:
[多选]
若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.216.96)
- 热门题目: 1.抽象方法只能存在于抽象类中。 2.Java的源代码中定义几个类 3./*......*/中可以嵌
