Instruction 1

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.

Unlock now

The next requirement in your program is to add support for marking contacts as “Company”. In contact book applications a company is a normal contact card but it creates some convenient functionality compared to how a person contact would appear, like have a single field for name instead of two.

In this demonstration, once a contact is marked as “company”, the app should ignore the lastName field and completely rely on firstName for the name of the company. Also relatedContacts would be the list of employees working within that company, which in that case would be a one-way relationship where employees are added in the company contacts, but not the other way around. Also this list can contain the contacts of companies that do business with each other which then would be a two-way relationship and the contacts would be added for both companies.

Person Person Person Person Company Company
App Diagram

See forum comments
Download course materials from Github
Previous: Introduction Next: Demo 1