Files
harbour-core/doc/en/tclass.txt
Viktor Szakats 58faf91453 2016-01-14 19:17 UTC+0100 Viktor Szakats (vszakats users.noreply.github.com)
* *
    % remove brandings and homepage [1] from copyright header. Pass 1 - using script.
      [1] nobody has access to it anymore AFAIK - and it's also just
          a redirect since long
    ! update url in copyright header
    ; this should make the diff between 3.4 and 3.2 easier to manage
2016-01-14 19:18:17 +01:00

71 lines
1.7 KiB
Plaintext

/*
* The following parts are Copyright of the individual authors.
*
* Copyright 2000 Brian Hays <bhays@abacuslaw.com>
* Documentation
*
* See COPYING.txt for licensing terms.
*
*/
/* $DOC$
$TEMPLATE$
Function
$NAME$
HBClass()
$CATEGORY$
API
$SUBCATEGORY$
Classes
$ONELINER$
HBClass() is used in the creation of all classes
$SYNTAX$
oClass := HBClass():New( "TMyClass" )
-or-
HBClass() is usually accessed by defining a class with the commands
defined in hbclass.ch:
CREATE CLASS HBGetList // Calls HBClass() to create the HBGetList class
...
ENDCLASS
$ARGUMENTS$
$RETURNS$
An instance of the HBClass Class. This special object's :New()
method can then create the classes you define.
$DESCRIPTION$
HBClass is a class that ...
The class methods are as follows:
New() Create a new instance of the class
$EXAMPLES$
FUNCTION TestObject()
LOCAL oObject
oObject := HBClass():New( "TMyClass" )
oObject:End()
RETURN NIL
$STATUS$
R
$COMPLIANCE$
Object Oriented syntax in Harbour is compatible with CA-Cl*pper.
However CA-Cl*pper 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 core
$SEEALSO$
__objHasData(), Object Oriented Programming, CLASS
$END$
*/