Question: Write a C++ code based on the class diagram to get the desired output. Besides using association, aggregation and composition, you need to use overload

Write a C++ code based on the class diagram to get the desired output. Besides using association, aggregation and composition, you need to use overload operator, array of objects and provide menu in the system.

Contact -phone: string +Contact (string) +getPhone (): string +setPhone (string) Address -home: 

Contact -phone: string +Contact (string) +getPhone (): string +setPhone (string) Address -home: string -quarantine: string +Address (string, string) +getHome (): string +getQuaranPlace (): string +setHome (string) +setQuaranPlace (string) International Person -name: string +Person (string) +getName (): string +setName (string) +printInfo() Student -info: Detail -number: *Contact -location: *Address +Student (string, string, string, Contact*, Address*) +printInfo() -country: string +International (string) +getCountry (): string +setCountry (string) +printDetails () Local -state: string +Local (string) +getState (): string +setState (string) +printDetails () Detail -matrix: string -ic: string +Detail (string, string) +getMatrix (): string +getIC (): string

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Below is a simplified implementation of the given class diagram in C Note that Ive made some assumptions about the details not provided in the class diagram cpp include include class Contact private s... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!