Question: 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
