问题描述:
[多选]
若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.157)
- 热门题目: 1.下列选项中,属于面向对象特征 2.下面哪个关键字用于将类中的属 3.下列关于类与对象的说法中,错
