摘要: 接口:package com.test;public interface Fruit {}一个实现类:package com.test;public class Apple implements Fruit {}基本测试类package com.test;import java.util.ArrayList;import java.util.List;public class TestName { public static void main(String[] args) { Fruit apple=new Apple(); System.out.print... 阅读全文
posted @ 2013-03-12 15:24 时光独白 阅读(17180) 评论(1) 推荐(0) 编辑