Constructor for the Bag ADT
The constructor simply sets the member variable used to 0.
This is so simple that we place the implementation inline, with the class definition:
Bag() {used = 0;}
Previous slide
Next slide
Back to first slide
View graphic version