A third object keeps a table of person objects and their


Question: Suppose you have Person objects and Location objects, and you need to keep track of the place of birth of each Person. There are at least three ways to organize this information:

a. Each Person object has an instance variable of type Location that stores the place of birth.

b. Each Location keeps a collection of references to Person objects corresponding to the people born at that location.

c. A third object keeps a table of Person objects and their place-of-birth Location objects. Discuss the advantages and disadvantages of each of these three designs.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: A third object keeps a table of person objects and their
Reference No:- TGS02580224

Expected delivery within 24 Hours