Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Class(y) - <b>inheriting from nantucket's classes</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
    Inheriting from Nantucket's Classes
------------------------------------------------------------------------------

    Nantucket's classes be used as though they were Class(y) classes.  This
    means they can be inherited from, for example:

        CREATE CLASS BetterBrowse FROM TBrowse
            .
            .

    Also, the Class(y) instantiation syntax can (optionally) be used
    instead of Nantucket's.  Four class functions have been provided
    for this purpose: TBrowse(), TBColumn(), Get(), and Error().  For
    example:

        oBr := TBrowseNew(5, 5, 15, 70)

    becomes

        oBr := TBrowse():new(5, 5, 15, 70)

    This allows greater consistency.  Either or both syntaxes can be used
    in the same program, and it does not matter which is used first.  See
    the tutorial section Inheriting from TBrowse (on the Class(y)
    distribution disk) for an example of how this can be used.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson