最近看了些技术类文章,都说前者那种面象接口的写法更好,藕合性更底之类的,
但具体好体现在哪里或为什么更好还是一口雾水,还有对藕合性这个慨念感觉理解得了也不怎么深刻,请大家来讨论下吧
还有不知道各位平时在项目中常用那种啊?
width="728" height="90" frameborder="0" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" scrolling="no" allowfullscreen="true" id="aswift_2" name="aswift_2" style="box-sizing: content-box; left: 0px; position: absolute; top: 0px;">
-
id="iframeu1636200_0" src="http://pos.baidu.com/rcjm?rdid=1636200&dc=2&di=u1636200&dri=0&dis=0&dai=2&ps=742x191&dcb=BAIDU_SSP_define&dtm=BAIDU_DUP_SETJSONADSLOT&dvi=0.0&dci=-1&dpt=none&tsr=0&tpr=1459128154568&ti=Map%20map%20%3D%20new%20HashMap()%3BHashMap%20map%20%3D%20new%20HashMap()%3B%E9%82%A3%E7%A7%8D%E5%86%99%E6%B3%95%E6%9B%B4%E5%A5%BD%3F-&ari=1&dbv=2&drs=3&pcs=956x500&pss=960x6318&cfv=0&cpl=4&chi=1&cce=true&cec=UTF-8&tlm=1459128155<u=http%3A%2F%2Fbbs.csdn.net%2Ftopics%2F310092881<r=https%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3D94_au7PP5C850lAOSyntKmcbGnijsU_o7-XY7Ol6sMiTHaCOKKJopjzO2cKfq6N3%26wd%3D%26eqid%3De92d58f60001bb790000000556f8871d&ecd=1&psr=1366x768&par=1366x728&pis=-1x-1&ccd=24&cja=false&cmi=6&col=zh-CN&cdo=-1&tcn=1459128156&qn=1d4f5e20c0bb5b0e&tt=1459128154419.1289.1479.1480" width="200" height="22" align="center,center" vspace="0" hspace="0" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" allowtransparency="true" style="box-sizing: content-box; border-width: 0px; border-style: initial; vertical-align: bottom; margin: 0px;">
-
id="iframeu1636201_0" src="http://pos.baidu.com/rcjm?rdid=1636201&dc=2&di=u1636201&dri=0&dis=0&dai=3&ps=742x445&dcb=BAIDU_SSP_define&dtm=BAIDU_DUP_SETJSONADSLOT&dvi=0.0&dci=-1&dpt=none&tsr=0&tpr=1459128154568&ti=Map%20map%20%3D%20new%20HashMap()%3BHashMap%20map%20%3D%20new%20HashMap()%3B%E9%82%A3%E7%A7%8D%E5%86%99%E6%B3%95%E6%9B%B4%E5%A5%BD%3F-&ari=1&dbv=2&drs=3&pcs=956x500&pss=960x6318&cfv=0&cpl=4&chi=1&cce=true&cec=UTF-8&tlm=1459128155<u=http%3A%2F%2Fbbs.csdn.net%2Ftopics%2F310092881<r=https%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3D94_au7PP5C850lAOSyntKmcbGnijsU_o7-XY7Ol6sMiTHaCOKKJopjzO2cKfq6N3%26wd%3D%26eqid%3De92d58f60001bb790000000556f8871d&ecd=1&psr=1366x768&par=1366x728&pis=-1x-1&ccd=24&cja=false&cmi=6&col=zh-CN&cdo=-1&tcn=1459128156&qn=0278281023bbe4d4&tt=1459128154419.1290.1517.1518" width="200" height="22" align="center,center" vspace="0" hspace="0" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" allowtransparency="true" style="box-sizing: content-box; border-width: 0px; border-style: initial; vertical-align: bottom; margin: 0px;">
-
id="iframeu1636204_0" src="http://pos.baidu.com/rcjm?rdid=1636204&dc=2&di=u1636204&dri=0&dis=0&dai=4&ps=742x699&dcb=BAIDU_SSP_define&dtm=BAIDU_DUP_SETJSONADSLOT&dvi=0.0&dci=-1&dpt=none&tsr=0&tpr=1459128154568&ti=Map%20map%20%3D%20new%20HashMap()%3BHashMap%20map%20%3D%20new%20HashMap()%3B%E9%82%A3%E7%A7%8D%E5%86%99%E6%B3%95%E6%9B%B4%E5%A5%BD%3F-&ari=1&dbv=2&drs=3&pcs=956x500&pss=960x6318&cfv=0&cpl=4&chi=1&cce=true&cec=UTF-8&tlm=1459128155<u=http%3A%2F%2Fbbs.csdn.net%2Ftopics%2F310092881<r=https%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3D94_au7PP5C850lAOSyntKmcbGnijsU_o7-XY7Ol6sMiTHaCOKKJopjzO2cKfq6N3%26wd%3D%26eqid%3De92d58f60001bb790000000556f8871d&ecd=1&psr=1366x768&par=1366x728&pis=-1x-1&ccd=24&cja=false&cmi=6&col=zh-CN&cdo=-1&tcn=1459128156&qn=d42578272d447d9a&tt=1459128154419.1292.1558.1559" width="200" height="22" align="center,center" vspace="0" hspace="0" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" allowtransparency="true" style="box-sizing: content-box; border-width: 0px; border-style: initial; vertical-align: bottom; margin: 0px;">