staticCode.Object: Method that will be call each time a new instance of a class...

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Method that will be call each time a new instance of a class is created.

By extending this method it is possible to have static code that is called each time a new instance of a class is created.

Usage

1
2
## S3 method for class 'Object'
staticCode(static, ...)

Arguments

static

The static instance of this class.

...

Not used.

Details

The method extend() in the Object class will call this method just before returning and it will pass the static instance of the class as a reference. Note that method should never be called explicitly.

Any value returned by this method will be ignored.

Value

Returns nothing.

Author(s)

Henrik Bengtsson

See Also

For more information see Object.

Examples

1
## Not run: For a complete example see help(Object).

R.oo documentation built on May 30, 2017, 6:44 a.m.

Search within the R.oo package
Search all R packages, documentation and source code