In c++ how would I write the bool function for the following ulmdiagram and given parameters?
The Dictionary Class
This class is holds all possible words that could appear in anygame. This class will read from words.txt to get all possiblewords, and then allow the program to check for whether a wordexists. Note that we are using a set in this case for quick access(an array would be O(n) which in this case could be substantiallylonger). The constructor will loads the words, while IsWord willreturn whether or not a
OR
OR