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ī)定出來,說一定要把a(bǔ)bstract這個關(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 閱讀(2218) 評論(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
          主站蜘蛛池模板: 聂拉木县| 衡水市| 米林县| 拉萨市| 巴马| 玛纳斯县| 会东县| 灯塔市| 九寨沟县| 浦东新区| 佛冈县| 康马县| 玛多县| 固原市| 丰台区| 铁岭县| 高雄市| 巩义市| 延寿县| 永靖县| 九龙城区| 昌黎县| 平安县| 馆陶县| 扶风县| 修武县| 土默特右旗| 沛县| 南雄市| 榆树市| 舞钢市| 长子县| 荆州市| 北川| 宁德市| 微山县| 额敏县| 沙河市| 云和县| 彰武县| 乾安县|