Previous: , Up: Inheritance   [Contents]


2.2.8 Final Classes

F = FinalClass( string name, Object dfn )

Define final named class C identified by name described by dfn.

F = FinalClass( string name ).extend( Object dfn )

Define final named class C identified by name described by dfn.

F = FinalClass( Object dfn )

Define anonymous final class C as described by dfn.

F = FinalClass.extend( Object dfn )

Define anonymous final class C as described by dfn.

Final classes operate exactly as “normal” classes do (see Defining Classes), with the exception that they cannot be inherited from.