Module Classes

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Core Language >

Module Classes

 

Module Classes

 

Module Classes are binary classes developed inside modules.

 

What is a Class

 

A Class is a complete object, which may include one or more methods and properties.

 

Methods are class functions used to manipulate class properties.

Every class can have one (and only one) constructor method whose syntax is defined in class documentation. Constructor method is used when a class is instantiated into a class variable using the New class operator.

Every class can have one (and only one) destructor method which is not available but defined internally by the class module programmer.

 

Properties are variables defined inside the class by the class programmer. They are not directly accessible but their values can be handled by calling class methods.