CSCI 261 - Programming Concepts - Maynooth 2022

Lab 4A - A Linked List Class

This lab is due by Friday, July 15, 2022, 11:59 PM.
As with all labs you may, and are encouraged, to pair program a solution to this lab. If you choose to pair program a solution, be sure that you individually understand how to generate the correct solution.


Instructions


We will begin refactoring our LinkedList operations from a structured procedural style to a more Object-Oriented approach.

Start by copying the Node.h header from Lab3B and placing it in this folder. Now create a new file called LinkedList.h that will store our Linked List class declaration. Note the naming scheme of our files now. We're using the PascalCase (UpperCamelCase) to denote this file contains a class declaration (since it's a header) and the name of the class is LinkedList.

The Class Shell

Begin by creating the LinkedList class declaration. This class will represent a LinkedList data structure. It's contained state will be the actual linked list and it will contain the methods to manipulate that state - the linked list.

The UML for the class is described below (with a description of the corresponding use):

Again, a test suite has been provided in linked_list_class_tests.zip. This time, the test suite will not compile until the class is declared and the functions are stubbed out.


Lab Submission


Submit your Node.h, LinkedList.h, LinkedList.cpp file(s).

You will submit your solution to this lab with the rest of Set4. Detailed instructions for doing this are posted in Assignment 4.


This lab is due by Friday, July 15, 2022, 11:59 PM.
As with all labs you may, and are encouraged, to pair program a solution to this lab. If you choose to pair program a solution, be sure that you individually understand how to generate the correct solution.