Corso di Raku / Oggetti, input/output ed eccezioni / Classi e oggetti / Ruoli / Aggiungere un ruolo a un oggetto

Quiz — Ruoli

Cosa stampa il programma seguente?

role Flyer {
    method fly { 'up we go' }
}

class Bird does Flyer {
}

say Bird.new.fly;
0Flyer
1up we go
0True
0un errore

Aggiungere un ruolo a un oggetto   |   Una scatola con una misura