运行下面程序,选择正确的输出结果为( )。public class Cat{String name;public void show(){System.out.print("Cat");}public static void main(String args[]){Cat c = new Tiger( );c.show();}}class Tiger extends Cat{public void show( ){System.out.print("Tiger");}}A. Cat B. Tiger C. Cat Tiger D. Tiger Ca
添加回答
举报
0/150
提交
取消