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.

Part of the GNU Project

Copyright © 2011, 2012, 2013, 2014, 2015, 2016 Free Software Foundation, Inc.

"GNU Inside!" Page Fold licensed under CC-BY-SA 2.0; incorporates "A Big GNU Head".

The source code of this website is available in the website branch of the Git repository.

Authored by Mike Gerwitz

AltStyle によって変換されたページ (->オリジナル) /