单项选择题
A.在Animal中,Method可用virtual前缀修饰,Method称为虚拟方法B.在Cat中,Method可用new前缀修饰,Cat中的Method会隐藏Animal中的MethodC.在Cat中,Method可用override前缀修饰,Cat中的Method会重写Animal中的MethodD.在Cat中,Method可用override前缀修饰,Cat中的Method会重写Animal中的虚拟方法Method
A.Cat tom=new Cat()B.Cat tom=new tom()C.Cat tom=new CatD.Cat tom=new tom
A.tom.EatFish()B.Cat.EatFish(3)C.tom.EatFish(3)D.Cat.EatFish()