package test4; /** * A word puzzle is a special kind of puzzle. Each word puzzle * has a collection of words. The word puzzle and its collection * of words form a composition. */ public class WordPuzzle extends Puzzle { /** * Initializes this word puzzle to be easy and have the given * collection of words. * * @param words the collection of words of this word puzzle. * @pre. words != null */ public WordPuzzle(Set words) { } /** * Returns the collection of words of this word puzzle. * * @return the collection of words of this word puzzle. */ public Set getWords() { } /** * Sets the collection of words of this word puzzle to * the given collection. * * @param words the new collection of words of this word puzzle. * @pre. words != null */ public void setWords(Set words) { } /** * Returns the number of words of this word puzzle. * * @return the number of words of this word puzzle. */ public int numberOfWords() { } /** * Returns a string representation of this word puzzle. * For example, an easy word puzzle with the words test, * awesome and question is represented as * "Easy puzzle: awesome question test" * * @return "Easy puzzle: ", "Intermediate puzzle: " or "Difficult puzzle: ", * depend of the level of this puzzle followed by the words of this * word puzzle sorted lexicographically (as in a dictionary). */ public String toString() { } }