基类Cat中定义了方法EatFish( int fishnumber),Cat的实例tom调用方法的正确语句是( )
A.tom.EatFish() B.Cat.EatFish(3) C.tom.EatFish(3) D.Cat.EatFish()正确答案C
基类Cat中定义了方法EatFish( int fishnumber),Cat的实例tom调用方法的正确语句是( )
A.tom.EatFish() B.Cat.EatFish(3) C.tom.EatFish(3) D.Cat.EatFish()正确答案C