Interface(接口)
摘要:
1、Interface的作用: 统一标准,增强可扩展性,增强可复用性,对开发者而言只需要知道这几个接口。 最能说明接口有上述三种作用的例子: ①JAVA容器 ②Android ContentProvider ③JDBC Interface List{ boolean add(Eo);boolean remove(Objecto); ……} public class ArrayListimplements List //ArrayList内部数据以数组也就是线性表的形式存储 { boolean add(E o) { …… } …… } public class LinkedLis... 阅读全文
posted @ 2012-04-05 22:54 SDSteam 阅读(320) 评论(0) 推荐(0) 编辑