Segment 20.25 defines the class KeyIterator. An instance of this class is an iterator that traverses the search keys in the dictionary. In a similar fashion, define a class ValueIterator to provide a way to traverse the dictionary's values.
Define an iterator for the ADT dictionary that returns entries containing both a search key and a value. Describe the class of these entries. Implement a method getEntryIterator that returns such an iterator.