3 Classes question

Hi, iam new at UML and i have a question. I have this uml containing 3 classes http://img20.imageshack.us/img20/6742/uml.jpg. Is this class diagram ok? Is possible that one class inherit from another and aggregate from this class too? My intention is that CLASS B can contain {CLASS A, CLASS B, CLASS C} and will reimplement some methods from CLASS A. I have this relationship implemented in C#, but i want to know if its ok from UML point of view. Thanks for any answers.

Remember that UML is a modelling language so you have some freedom on representing your models. What you have presented is valid. However, I’m not sure if it is representing your idea of “CLASS B can contain {CLASS A, CLASS B, CLASS C}”.

I interpret your class diagram in the following way: