Question
Instead of maintaining an instance of Dictionary in EmployeeDatabase, one could make it a subclass of Dictionary. How would this change the methods for this class? What are the advantages and disadvantages of both schemes?
Step 1
This means that EmployeeDatabase would have all the methods for adding, removing, and accessing key-value pairs that are already implemented in the Dictionary class. However, EmployeeDatabase could also override these methods to provide custom behavior specific Show more…
Show all steps
Your feedback will help us improve your experience
Watch the video solution with this free unlock.
EMAIL
PASSWORD