Perl 6 defines the so-called submethods for classes. These are the methods which are not propagating to the subclass’s definition. The submethods may be either private or public, but they will not be inherited by the children.
class A { Â Â Â submethod submeth { Â Â Â Â Â Â Â say "A.submeth" Â Â Â } } class B is A { } my A $a; my B $b; $a.submeth; Â Â # OK # $b.submeth; # Error: No such method 'submeth' # for invocant of type 'B'