1
yushiro 2013 年 9 月 5 日 “接口”指定了要实现什么功能, 具体怎么实现, 自由发挥。
举个简单例子, 添加记录到数据库, 具体是MSSQL还是MYSQL,不需要关心, 只需要知道, 调用了这个方法, 就会进入数据库。 |
2
bengol 2013 年 9 月 5 日
啥叫针对实现编程?
|
3
felix021 2013 年 9 月 5 日
通过约定的协议,实现不同模块间的解耦。
|
4
gangsta 2013 年 9 月 5 日 stackoverflow上有类似的经典问题哦:
http://stackoverflow.com/questions/383947/what-does-it-mean-to-program-to-an-interface 另外同样推荐Martin Fowler这篇关于翻转控制和依赖注入的文章: http://martinfowler.com/articles/injection.html |
5
unionx 2013 年 9 月 5 日
为什么Oracle要告Google侵权Java API?
|