Cpts 223- for this micro assignment you must implement the


Micro Assignment- Big Five

For this micro assignment, you must implement the "big five" class methods for the supplied LinkedList class:

1. Destructor
2. Copy constructor
3. Move constructor
4. Copy operator=
5. Move operator=

These interfaces are in the public: section and clearly marked. I have included an implementation of an ADT array in Array.h that implements these methods as an example. No, you can't copy/paste between the two and have it work. The Big Five methods are documented in the book's chapter 1 and in various places on the Internet. Here's a couple of examples trying to show general solutions:

https://en.cppreference.com/w/cpp/language/rule_of_three
https://www.cppsamples.com/common-tasks/rule-of-five.html

Each of the Big Five (or Rule of Five) interfaces, plus the initializer list interface, are noted with the comment string "MA TODO" in LinkedList.h. Each of the interfaces should take no more than 8-10 lines of code, and some as small as 3.

Included in main.cpp is a test function for the linked list data structure. Be sure that your edits make this test function work correctly. As you complete the interfaces, you'll find that these tests will output the proper values, including the destructor. I keep a pointer to a list's contents, destroy the list, then print out the list contents. Yup, that's dangerous as long as you don't implement it correctly.

The Makefile gets the better g++ compiler on the EECS SSH servers and the commands to build and test are the usual "make" and "make test". The command "make run" will be a special treat.

Attachment:- Files.zip

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Cpts 223- for this micro assignment you must implement the
Reference No:- TGS02197502

Expected delivery within 24 Hours