Serie: Angelia
java
11 righe
· Aggiornato 2026-09-27
ErasableChatHistory.java
Angelia/Java/Week_6_7/code/02_adt_interfaces/ErasableChatHistory.java
/**
* 擴充介面(interface extends interface):
* 在 ChatHistory 的所有要求之上,再多要求一個「清空」的能力。
*
* 任何 ErasableChatHistory 同時也是一個 ChatHistory(子型別關係)。
*/
public interface ErasableChatHistory extends ChatHistory {
/** 刪除所有訊息。後置條件:size() == 0 */
void erase();
}
Articoli correlati
Angelia
haskell
EN
Aggiornato 2026-02-03
Adding.hs
Adding.hs — haskell source code from the Angelia learning materials (Angelia/Haskell/Adding.hs).
Leggi l'articolo →
Angelia
haskell
EN
Aggiornato 2026-02-03
Area.hs
Area.hs — haskell source code from the Angelia learning materials (Angelia/Haskell/Area.hs).
Leggi l'articolo →
Angelia
haskell
EN
Aggiornato 2026-02-03
Chess.hs
Chess.hs — haskell source code from the Angelia learning materials (Angelia/Haskell/Chess.hs).
Leggi l'articolo →
Angelia
haskell
EN
Aggiornato 2026-02-03
ChessGraphics.hs
ChessGraphics.hs — haskell source code from the Angelia learning materials (Angelia/Haskell/ChessGraphics.hs).
Leggi l'articolo →
Angelia
haskell
EN
Aggiornato 2026-02-03
Examples.hs
Examples.hs — haskell source code from the Angelia learning materials (Angelia/Haskell/Examples.hs).
Leggi l'articolo →
Angelia
haskell
EN
Aggiornato 2026-02-03
Fibonacci.hs
Fibonacci.hs — haskell source code from the Angelia learning materials (Angelia/Haskell/Fibonacci.hs).
Leggi l'articolo →