若Animal是Cat,Dog的父类,则下列选项中,正确的是()

若Animal是Cat,Dog的父类,则下列选项中,正确的是()

正确答案:Animalanimal=newCat();;Animalanimal=newDog();

猜你喜欢