Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Default Constructor Find - Takes in a string that can either be a phone number or a name and returns the found contact as a
Default Constructor
Find Takes in a string that can either be a phone number or a name and returns the found contact
as a pointer. Returns a nullptr if a given string is not a name or a number in the contact system.
Add Takes in a contact object and stores its memory address in the furthestmost empty position
in the array. The current order of contacts in the array must be preserved. Note: passing by value
will result in a garbage pointer It returns nothing. Also know that there will never be a
test case that tries to add a Contact that already exists in
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