Interface v.s. Abstract === ## 到底要以 `abstract class` 或者 `interface` 來設計一個抽象概念的類型? 可以參考最後一個[連結](https://jjnnykimo.pixnet.net/blog/post/21585257),我們對於問題領域的理解,正確的揭示我們的設計意圖: * AlarmDoor在概念本質上是Door? * AlarmDoor在概念本質上是報警器? ## Ref. [https://programming.im.ncnu.edu.tw/J_index.html](https://programming.im.ncnu.edu.tw/J_index.html) [https://matthung0807.blogspot.com/2020/04/java-abstract-class-interface-difference.html](https://matthung0807.blogspot.com/2020/04/java-abstract-class-interface-difference.html) [深入理解abstract class和interface](https://jjnnykimo.pixnet.net/blog/post/21585257) ###### tags: `介紹`