[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
28.4.4 Extending Java classes
A class definition may be split into several pieces. One class declaration (see <declare-class-clause>) and several extensions. The syntax for a Java class extension is:
<extend-class-clause> →(
class <typed-ident> <slot>*)
Example:
(module java-example2 (import java-example) (java (class point (field y::int "y") (field static num::int "point_num") (constructor new (::int ::int)))))
This document was generated on March 31, 2014 using texi2html 5.0.