Perl6 Object Oriented Cookbook (v0.2.1)  
Section 4: Inheritance  
 
Recipe 4.10: Accessing an Attribute or Method in the 'Superclass' of a Class or Object
Last Updated: Sep 8, 2003
Status: Draft
      Previous Page   Next Page

How important is this problem to you?
  (Login to Vote)
5.00 Rating, 2 Votes  

How acceptable is the proposed solution?
  (Login to Vote)
1.00 Rating, 1 Vote  

Problem:  

Solution:  

Use SUPER before the attribute or method name:

method foo {
    .SUPER.foo( ... );
}

Discussion:

Issue: Or just .SUPER( ... )? Or just .SUPER?


Log In to Comment


Login / Edit User Info -- Copyright © 2002 Cognitivity -- Previous Page   Next Page