The TreeSet class is built upon a backing instance of the TreeMap class. Discuss the advantages and disadvantages of this strategy for reuse.
What will be an ideal response?
By using a TreeMap to implement the TreeSet class, much of the common functionality can be shared. The TreeMap has more complex functionality, but by keeping it constrained to one set of values it eliminates the need for a second full implementation.
Computer Science & Information Technology
You might also like to view...
The ____ constructor is executed when an object is declared and initialized by using the value of another object.
A. default B. copy C. struct D. class
Computer Science & Information Technology
Each new Flash movie contains one layer, named ____________________.
Fill in the blank(s) with the appropriate word(s).
Computer Science & Information Technology