Question
C++ Please Figure 4.4. Contacts Figure 4.4 describes a model [39] for a Contact system. ContactList can derive from or reuse any Qt container that
C++ Please
Figure 4.4. Contacts
Figure 4.4 describes a model[39] for a Contact system. ContactList can derive from or reuse any Qt container that you like, as long as it supports the operations listed.
getPhoneList(int category) accepts a value to be compared with a Contact's category member for selection purposes. It returns a QStringList containing, for each selected Contact, the name and phone number, separated by the tab symbol: "\t".
getMailingList() has a similar selection mechanism and returns a QStringList containing address label data.
Write a ContactFactory class that generates random Contact objects.
Contact ContactList category :int firstName QString lastName QString streetAddress : QString zipCode QString city: QString -phoneNumber QString +toString:QString + add(c : Contact) + remove(c : Contact) +getPhoneList(category : int) : QStringList + getMailingList(category : int): QStringList QtContainerClass Contact ContactList category :int firstName QString lastName QString streetAddress : QString zipCode QString city: QString -phoneNumber QString +toString:QString + add(c : Contact) + remove(c : Contact) +getPhoneList(category : int) : QStringList + getMailingList(category : int): QStringList QtContainerClassStep 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