How to Depict Either/Or Inheritance in a UML diagram?

Viewed 670

So lets say I have a class CelebrityDog. CelebrityDog can either be a BigDog or a SmallDog depending on what the user wants.

It will inherit the properties of one of them, but not of both. How would I depict this in a UML diagram?

2 Answers
Related