2016年3月31日
摘要: /** * * @author Administrator * 功能:接口体现多态 */ package com.test4; public class Test { public static void main(String[] args) { // TODO Auto-generated method stub CarShop aSho... 阅读全文
posted @ 2016-03-31 22:40 让编程成为一种习惯 阅读(287) 评论(0) 推荐(0) 编辑
摘要: package com.test2; public class Test { public static void main(String[] args) { // TODO Auto-generated method stub System.out.println(Usb.a); //创建一个计算机 Computer... 阅读全文
posted @ 2016-03-31 21:57 让编程成为一种习惯 阅读(242) 评论(0) 推荐(0) 编辑
摘要: /** * * 功能:演示多态 */ package com.litao; public class Demo5 { public static void main(String[] args) { // TODO Auto-generated method stub //体现多态 /*Cat cat1 = new Cat();... 阅读全文
posted @ 2016-03-31 21:18 让编程成为一种习惯 阅读(230) 评论(0) 推荐(0) 编辑
摘要: /** * * @author Administrator * 功能:丢手帕问题 */ package com.litao; public class Demo4 { /** * @param args */ public static void main(String[] args) { // TODO Auto-generate... 阅读全文
posted @ 2016-03-31 20:09 让编程成为一种习惯 阅读(225) 评论(0) 推荐(0) 编辑