Meeting 07: Array-Based Implementations

Today we will see how to formalize the notion of a public interface using classes, finish our fixed size array implementation of the Bag ADT, and continue the test-code-test cycle.

In-class Exercise: LimitedSizeBag

Lets define and implement the limited-size Bag ADT

  1. Download the starter code
  2. In limited_size_bag.hpp define the class LimitedSizeBag conforming to the BagADT interface.
  3. In test_limited_size_bag.cpp implement a few tests for the methods using Catch.
  4. In limited_size_bag.tpp implement the LimitedSizeBag methods.
  5. Build your code locally as you work.
  6. Submit your limited_size_bag.hpp, limited_size_bag.tpp, and test_limited_size_bag.hpp files collected into a zip file via Canvas at the Assignment "Exercise for Meeting 7". You can create this zip file using the CMake submission target.