Assignment Description: Call your driver "array_temp_class.cpp", and your TEMPLATE class implementation file "alist.cpp". Define the following behavior for ALIST

  • Overload the "=" operator as a member function with chaining which assigns the state of one ALIST object to the state of another ALIST object.
  • Overload the "+" operator as a member function with chaining to add an integer value an ALIST object's dynamic array.
  • Implement a copy constructor to perform a deep copy of an ALIST object. Include the following message, "Copy Constructor Invoked."
  • Overload the "<<" operator as a friend function with chaining which prints all the elements stored in an ALIST objects dynamic array with chaining.
  • Implement the member function called "Search" to search the list for an item.
  • Implement a default constructor. Include the following message, "Default Constructor Invokied."
  • Implement a function called "Remove" to remove an integer from the list.

Your program should test the operation of the template class on character, integer and string types. Also, remember that for class templates the declaration and the implementation must reside in the same file. For this assignment, put the class declaration in the impleimentation file "alist.cpp". Consider the following skeleton class to help you implement the class ALIST: See image.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.