このコンテンツは選択した言語では利用できません。
11.11. Traits
Traits allow you to model multiple dynamic types which do not fit naturally in a class hierarchy. A trait is an interface that can be applied (and eventually removed) to an individual object at runtime. To create a trait out of an interface, a
@format(trait)
annotation is added to its declaration in DRL.