Answered step by step
Verified Expert Solution
Question
1 Approved Answer
the following operators: + = Contact - Adds a single contact to a ContactBook object + = ContactBook - Adds all contacts from the passed
the following operators:
Contact Adds a single contact to a ContactBook object
ContactBook Adds all contacts from the passed in ContactBook to this object. Adding
them to the back in the order they are in the other ContactBooks array.
ContactBook Adds two contact books together and returns the resulting ContactBook.
Contact Removes the Contact that matches the passedin Contact.
ContactBook Removes all contacts from a passed in ContactBook from this object
HELPFUL LINKS
ContactBook Same as above, but returns a new ContactBook object as the result instead
of modifying the current one
ContactBook Equality operator, if two ContactBooks have all the same Contacts in
them, in any order. Meaning that contacts may not exactly be in the same order in both
arrays in each of the ContactBooks.
ContactBook Same as above, but the not equal operator
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