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 閱讀(2193) 評論(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
          主站蜘蛛池模板: 北海市| 满城县| 屯留县| 周宁县| 沙坪坝区| 射洪县| 龙泉市| 昌宁县| 五河县| 广水市| 哈巴河县| 平陆县| 荥阳市| 三门县| 连州市| 松滋市| 望城县| 安义县| 海盐县| 泊头市| 卓尼县| 合川市| 云霄县| 邯郸市| 祁连县| 湖南省| 唐海县| 马山县| 修水县| 哈密市| 宁津县| 阳曲县| 安仁县| 娱乐| 宿松县| 鄢陵县| 峨眉山市| 元江| 临汾市| 鞍山市| 泰顺县|