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的區別嗎?

          interface 本身就是abstract的,只不過沒有明確的規定出來,說一定要把abstract這個關鍵字寫上。
          所以abstract interface 就是interface,兩者根本沒有區別。
          在《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.

          所以結論就是 abstract interface 就是interface,兩者根本沒有區別。

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

          評論

          # re: abstract interface和interface的區別嗎? 2008-03-23 15:49 迎風十八刀

          哦 我還以為有區別,原來晃點我  回復  更多評論   

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

          區別就是可以接口繼承接口的時候可以extends接口  回復  更多評論   

          導航

          統計

          常用鏈接

          留言簿(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
          主站蜘蛛池模板: 罗平县| 江口县| 射洪县| 昭苏县| 乐亭县| 沙湾县| 抚州市| 苏尼特右旗| 榆林市| 鲜城| 台前县| 平凉市| 柞水县| 深水埗区| 临漳县| 通化市| 杭锦后旗| 老河口市| 西平县| 公主岭市| 芜湖县| 界首市| 隆尧县| 长宁县| 通榆县| 西吉县| 新安县| 土默特左旗| 青河县| 新余市| 高陵县| 德化县| 宜良县| 湖州市| 藁城市| 乌兰察布市| 桃源县| 象州县| 红原县| 稻城县| 芦山县|