411 REFERENCE · Wikibooks
Raku Programming/Roles and Inheritance
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Inheritance
Basic class systems enable data and the code routines that operate on that data to be bundled together in a logical way. However, there are more advanced features of most class systems that enable inheritance too, which allows classes to build upon one another. Inheritance is the ability for classes to form logical hierarchies. Raku supports normal inheritance of classes and subclasses, but also supports special advanced features called mixins, and roles. We are going to have to reserve some of the more difficult of these features for later chapters, but we will introduce them here.
Class Inheritance
Roles and does
Mixins
Parametric Roles