Objects
Objects are instances created from classes.
An object allows you to access class variables and functions.
Creating an Object
Use Inst to create an object from a class.
This creates a new object named example.
Accessing Variables
Use the dot (.) operator to access object variables.
Output:
Updating Variables
You can modify variables after the object is created.
Now the value becomes:
Calling Functions
Use the dot (.) operator to call object functions.
Output:
Complete Example
class myclass {
Int x : 100;
func execute(){
DisplayLog("hello world " + x);
}
}
Inst example : myclass();
example.x += 200;
example.execute();
Output:

Multiple Objects
Each object has its own values.
In this case:
a.x= 10b.x= 50
They are independent.
Notes
Warning
You cannot access a class variable directly without creating an object.