Course of Raku / Objects, I/O, and exceptions / Classes and objects / The metaobject protocol 🆕 / Exercises
The method resolution order
Problem
Define a chain of three classes: A, then B
that inherits from A, then C that inherits
from B. Print the method resolution order of C
as a list of type names.
Example
The program prints:
(C B A Any Mu)Solution
Course navigation
← Solution: Find a method | Solution: The method resolution order →