Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Harbour Version 0.37 (c) reference Guid - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

TClass()

TClass() is used in the creation of all classes
---------------------------------------------------------------------------------

 Syntax

        oClass := TClass():New("TMyClass")  
      -or-  
        TClass() is usually accessed by defining a class with the commands  
        defined in hbclass.h:  
      CLASS TGetList// Calls TClass() to create the TGetList class  
         ...  
      ENDCLASS  

 Arguments



 Returns

       An  instance of the TClass Class. This special object's :New() 
                  method can then create the classes you define.

 Description

      TClass is a class that ...  The class methods are as follows:

      New()                 Create a new instance of the class

 Examples

      FUNCTION TestObject()
      local oObject

      oObject := TClass():New("TMyClass")
      oObject:End()

     RETURN Nil
      

Status

      Ready

 Compliance

      Object Oriented syntax in Harbour is compatible with CA-CLIPPER.  But
      Clipper only allowed creation of objects from a few standard
      classes, and did not let the programmer create new classes.  In
      Harbour, you can create your own classes--complete with  Methods,
      Instance Variables, Class Variables and Inheritance.  Entire
      applications can be designed and coded in Object Oriented  style.

 Platforms

      All

 Files

      Library is rtl



See Also: Object Oriented Programming CLASS

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