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:
Topic archived. No new replies allowed.