Course of Raku / Objects, I/O, and exceptions / Classes and objects / Subroutines vs methods

Quiz — Subs vs methods

You have an object $dog whose class defines a method bark. How do you call that method on the object?

0bark($dog)
1$dog.bark
0bark.$dog
0$dog::bark

Course navigation

Solution: Triple as a method   |   Inheritance