gembin

          OSGi, Eclipse Equinox, ECF, Virgo, Gemini, Apache Felix, Karaf, Aires, Camel, Eclipse RCP

          HBase, Hadoop, ZooKeeper, Cassandra

          Flex4, AS3, Swiz framework, GraniteDS, BlazeDS etc.

          There is nothing that software can't fix. Unfortunately, there is also nothing that software can't completely fuck up. That gap is called talent.

          About Me

           

          abstract interface和interface的區(qū)別嗎?

          interface 本身就是abstract的,只不過沒有明確的規(guī)定出來,說一定要把abstract這個關(guān)鍵字寫上。
          所以abstract interface 就是interface,兩者根本沒有區(qū)別。
          在《java in a nutshell》里,
          “All methods of an interface are implicitly abstract, even if the abstract modifier is omitted. ”
          在《thinking in java》里,
           the abstract keyword, which allows you to create one or more methods in a class that have no definitions
          —you provide part of the interface without providing a corresponding implementation, which is created by inheritors. 
          The interface keyword produces a completely abstract class, one that provides no implementation at all.

          所以結(jié)論就是 abstract interface 就是interface,兩者根本沒有區(qū)別。

          posted on 2008-03-21 17:29 gembin 閱讀(2217) 評論(2)  編輯  收藏 所屬分類: JavaSE

          評論

          # re: abstract interface和interface的區(qū)別嗎? 2008-03-23 15:49 迎風(fēng)十八刀

          哦 我還以為有區(qū)別,原來晃點我  回復(fù)  更多評論   

          # re: abstract interface和interface的區(qū)別嗎? 2009-03-11 23:32 aben

          區(qū)別就是可以接口繼承接口的時候可以extends接口  回復(fù)  更多評論   

          導(dǎo)航

          統(tǒng)計

          常用鏈接

          留言簿(6)

          隨筆分類(440)

          隨筆檔案(378)

          文章檔案(6)

          新聞檔案(1)

          相冊

          收藏夾(9)

          Adobe

          Android

          AS3

          Blog-Links

          Build

          Design Pattern

          Eclipse

          Favorite Links

          Flickr

          Game Dev

          HBase

          Identity Management

          IT resources

          JEE

          Language

          OpenID

          OSGi

          SOA

          Version Control

          最新隨筆

          搜索

          積分與排名

          最新評論

          閱讀排行榜

          評論排行榜

          free counters
          主站蜘蛛池模板: 连江县| 丹巴县| 绵竹市| 涞源县| 贺州市| 浮山县| 遵义市| 土默特左旗| 恩施市| 和硕县| 明光市| 宁陵县| 滕州市| 黄冈市| 分宜县| 巴南区| 松滋市| 台山市| 紫阳县| 西峡县| 嘉荫县| 日土县| 武宣县| 太和县| 宽城| 清徐县| 云浮市| 阿拉善左旗| 朔州市| 叙永县| 观塘区| 惠安县| 昌黎县| 连城县| 宜城市| 通许县| 镇远县| 郁南县| 东源县| 汨罗市| 汉寿县|