Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

PlantUML Macro
interface Counter {
	int getCounter()
	void count()
}
class CounterImpl {
	CounterImpl(int start, int end)
}
Counter <|-- CounterImpl
PlantUML Macro
interface ICounterCounter {
	int getCounter()
	void count()
}
class CounterUpCounter {
	CounterUpCounter(int start, int end)
}
class DownCounter {
	DownCounter(int end, int start)
}
ICounterCounter <|-- UpCounter
Counter <|-- DownCounter

 

Spørsmål til refleksjon

  • Prøv å beskrive grensesnittet til en stabel (eng: stack), med metodene push(), peek(), pop() og isEmpty()

...