How to create a container class.

Can anybody show me an example. I know that it's a class that contains data from another class I just do not know how to make them both work together.
There's a nice example of a bag container here:
http://www.cplusplus.com/forum/beginner/92078/
Topic archived. No new replies allowed.