Subsetted Properties are widely used in UML specification diagrams.
A real-world example would be great
the following screenshot from UML specification 2.5(Beta)
According to UML 2.4.1 specification, Subsetted Property references the properties of which this property is constrained to be a subset.
What do you mean by a real-world example ? UML specification is one of them I guess...
But you might find this kind of properties in all applicatioh where an Object is associatded to another and this association is redefined in the context of two of theirs subtypes.
For example, an Animal
class can be associated to a Limb
class. We can also define two classes Human
and Leg
extending respectively Animal
and Limb
. Finally we can associate Human
and Leg
which will be a redefinition of the preexisting association.
Hoping it helps, BR