[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  METHOD ... VIRTUAL             Define a virtual "dummy" Method
------------------------------------------------------------------------------


 SYNTAX:

    [<preScope>] METHOD  <cMsg>[(param)] [<postScope>] VIRTUAL
    [<preScope>] MESSAGE <cMsg>[(param)] [<postScope>] VIRTUAL

    METHOD  <cMsg>[(param)]:VIRTUAL
    MESSAGE <cMsg>[(param)]:VIRTUAL


 PARAMETER:

  <Scope>      Specifies the visibility of the Message. 
               Please press  Related Topics:  and select  METHOD  for
               more detailed informations about method scopes


  <cMsg>       Is the Message name of our virtual Method



 DESCRIPTION:

  Virtual Methods ( or NULL Methods in Classy ) are used to substitute a 
  non-existing Method with a 'dummy' message. A virtual Method will do
  nothing when it is called, and return NIL to the caller. 

  The only benefit of a virtual Method is that the Application will not bomb
  with a "message not found" error when the message is received.
  This is very usefull if you have to provide a common class interface :
  Class A may need a SETFOCUS Method, while Class B does not; if you    
  provide a VIRTUAL method SetFocus in Class B, then you can send the
  SetFocus message to both Objects ..



See Also: Method Extern SetGet Inline Block
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson