Given the UML class diagram of a program
named SpellChecker. Assume that the
classes Dictionary and Word and the
method main have been implemented. Below are the design
specifications of the class SpellChecker.
a, About method SpellChecker: write the code that
implements its behaviour description.
b, About method checkSpell: write the code that
implements the behaviour description lines (1-3).
c, About method getSpellErrors: write the code that
implements its behaviour description.
d, Briefly discuss a suitable implementation strategy for
the design diagram.
Spellchecker - dict: Dictionary - spellErrors: List<Word> + Spellchecker(dict: Dictionary) + checkSpell(doc: String) + getSpellErrors(): List<Word> + <static> main(String]) Word - label: String Dictionary - entries: Map<Word, List<Word>> + Dictionaryo + addEntry( Word, List<Word>) + lookUp(Word): boolean + Word(label: String) + getLabel(): String + toString(): String
Given the UML class diagram of a program named SpellChecker. Assume that the classes Dictionary and Word and the method
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am