作业代码区别问题
这两段代码的区别在哪里,运行结果一样
human log1=new Chinese();
log1.say();
human log2=new American();
log2.say();
-------------------------------
Chinese p=new Chinese();
p.say();
American p2=new American();
p2.say();
这两段代码的区别在哪里,运行结果一样
human log1=new Chinese();
log1.say();
human log2=new American();
log2.say();
-------------------------------
Chinese p=new Chinese();
p.say();
American p2=new American();
p2.say();
2018-03-31
举报