PPT Slide
The Bag Class
C++ classes (introduced in Chapter 2) can be used to implement a container class such as a Bag.
The class definition includes:
class Bag
{
public:
Bag( );
void insert(...
void remove(...
...and so on
The heading of the definition
A constructor prototype
Prototypes for public
member functions
Previous slide
Next slide
Back to first slide
View graphic version