看板 java 關於我們 聯絡資訊
※ 引述《PsMonkey (痞子軍團團長)》之銘言: : ===== : 是說,我還是搞不太懂什麼時候用 interface : 啥時候用 abstract class : 不過,這兩個在 Java 語法當中是不一樣的東西 : 這點倒是得記得的很清楚 Abstract class是用在您要先實作某些方法時…例如Template Method… http://caterpillar.onlyfun.net/Gossip/JavaGossip-V1/AbstractClass.htm 介面…完全抽象,只用於規範… http://caterpillar.onlyfun.net/Gossip/JavaGossip-V1/InterfaceType.htm -- 良葛格學習筆記 http://caterpillar.onlyfun.net/Gossip/ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 218.166.214.170