Question
16. Suppose you are involved in designing a system that must maintain information about a large number of individuals (for example, customer records or health
16. Suppose you are involved in designing a system that must maintain information about a large number of individuals (for example, customer records or health records). Each person will be represented with an object that contains all of their critical information. Your job is to design a container class to hold all of these records. The following operations must be supported:
add(person) adds person object to the collection remove(name) removes the person named name from the collection. lookup(name) returns the record for the person named name. list_all returns a list of all the records in the collection in order by name
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started