Hello,
GS3 is currently emulating classes using only GS2 features.
While the GS3 syntax already support constructors, getters / setters, inheritance, classes can only be used as containers as for now.
You can only define simple classes with members initialization but functions do not work yet.
Example:
PHP Code:
class Animal extends TStaticVar {
var name : string;
var canBreathe : boolean = true;
}
class Dog extends Animal {
var canBark : boolean = true;
}
function onCreated() : void {
var dog : Dog = new Dog();
dog.name = "Woof";
echo(dog.canBark); // 1 (true)
echo(dog.canBreathe); // 1 (true)
}