HBObject() > Methods for object creation and initialization xHarbour Developers Network  

oHBObject:initClass()

Initializes class variables of a class.

Syntax

:initClass( [<params,...>] ) --> self

Arguments

<params,...>
All parameters passed to the Class function are forwarded to :initClass().

Return

The method returns the object self.

Description

Method :initClass() is implicitly called from the Class function declared with the CLASS declaration. It serves the purpose of initializing class members which exist only once in a class and have the same values for all instances of a class. An alternative initialization of class variables is provided with the INIT clause of the CLASSDATA declaration of a class. This is the recommended way for initializing class variables.


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe