Navigation:  ThinBASIC Language > Module Classes >

New operator

Previous pageReturn to chapter overviewNext page

 

Description

 

Instantiate a new class variable calling default class constructor (if any)

 

Syntax

 

ClassVariable = New ClassName[(parameters)]

 

Returns

 

Parameters

 

Name

Type

Optional

Meaning

ClassName

Class

No

Every thinBasic module can optionally define and declare to thinBasic Core engine one or more classes. Classes are special kind of interfaces able to instantiate a class object (or ClassVariable).
Every class object can implement specific language functionalities.

See specific module help to see if it exports module classes.

 

An example o module classes: cTimer in Core module

 

Remarks

 

 

 

Restrictions

 

See also

 

Examples