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

oHBObject:init()

Initializes a new instance (object) of a class.

Syntax

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

Arguments

<params,...>
All parameters passed to the :new() method are forwarded to :init().

Return

The method returns the object self.

Description

Method :init() is called from method :new() and serves the purpose of initializing a newly created object. The parameters passed to :new() are forwarded to :init() where the received values are usually stored in instance variables of the new object. An alternative initilization of instance variables is provided with the INIT clause of the DATA declaration of a class.


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