How to express mutually exclusive inheritance in UML? -


how exemplify class can inherit either of 2 super-classes, not both?

enter image description here

the class property can either represent set of numbers, or cardinal number, not both @ same type.

your sub classing upside down. need set property , cardinal property specialize property. if subclasses have characteristics of set , cardinal, subclass well.


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -