Question: Write an interface for the generic Bag ADT ( called AbstractBag ) and adapt our implementation of Bag to derive from this interface. Use the

Write an interface for the generic Bag ADT (called AbstractBag) and adapt our
implementation of Bag to derive from this interface.
Use the provided starter code under
programming_problems/problem01/bag_interface/
In the file abstract_bag.hpp define a C++ interface for our Bag ADT called
"AbstractBag". Take a look at bag_simple.hpp to see the functions that
need to be defined in the interface.
a. By definition, an interface should have only pure virtual methods.
b. Include comments in Javadoc format for each method
Adapt the Bag declaration and implementation in the files bag_simple.hpp
and bag_simple.tpp to derive from the interface in abstract_bag.hpp.
Build your code locally as you work and make sure that it passes the test
cases found in bag_tests.cpp
Once you have defined the interface and all tests are passing, run the
"submission" target and submit the zip file problem01_bag_interface.zip via
Gradescope
 Write an interface for the generic Bag ADT (called AbstractBag) and

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!