public abstract class AbstractWordPuzzle extends Object
Modifier | Constructor and Description |
---|---|
protected |
AbstractWordPuzzle(String word)
Constructor to set the solution to the puzzle.
|
protected AbstractWordPuzzle(String word)
word
- the solution to the puzzlepublic String getWord()
public abstract String getPuzzleWord()
public String toString()
" : "
followed by the puzzle word.toString
in class Object
Object.toString()