【疑惑】一个关于接口的问题不理解,请教!
j2ee吧
全部回复
仅看楼主
level 1
啊线帘0G 楼主
class Action
interface Service
class ServiceImpl implements Service
问题:
为什么要写一个接口,有必要吗?
它方便在哪?这样就能降低耦合度?
2014年04月01日 02点04分 1
level 10
等到你修改时就知道这样得好处了
2014年04月08日 10点04分 2
1