java基础知识——类的继承
摘要:
1.在子类中通过super调用父类的方法,并将该调用嵌入复写该方法的过程中package learning;class Super { String nameString; int age; public Super(String name, int age) { this.nameString = name; this.age = age; } public void talk(){ System.out.print("姓名:" + nameString + "\t\t" + "年龄:" + age); ... 阅读全文
posted @ 2013-04-23 15:13 JueFan_C 阅读(156) 评论(0) 推荐(0) 编辑