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( );
The heading of the definition
A constructor prototype
Previous slide
Next slide
Back to first slide
View graphic version