BeDict Logo

roles

/ɹəʊlz/ /ɹoʊlz/
的视觉插图 roles: 角色, 作用。
noun

在Raku编程中,Student类和Teacher类都可以使用像CallableSerializable这样的角色,来增加额外的行为,而无需让它们之间产生直接的继承关系。