01_user_documentation:07_rgg_xl:02_xl:08_object:01_module:01_declaration:02_using_super_attribute
Using super attribute
Module declarations may also specify their superclass explicitly, use inherited fields in the pattern, and contain an entire class body:
module B ( super.len, String s) extends A; //is equivalent to (given the previous declaration of A) class B extends A { String s; B(float l, String s) {super(l); this.s = s;} public static class Pattern extends UserDefinedPattern { private static void signature(@In @Out Y node, float a, String b ) {} // Notice how the pattern of B take both a and b as parameters } }
01_user_documentation/07_rgg_xl/02_xl/08_object/01_module/01_declaration/02_using_super_attribute.txt · Last modified: 2025/09/04 16:46 by gaetan
