Code: Select all
Father := new Father()
class Father {
__New() {
childFirst := new Father.childFirst
childSecond := new Father.childSecond
}
class childFirst {
static HaveToBeGlobal := "my global and changable variable"
__New() {
;I cant change the key value
this.HaveToBeGlobal := "my global and changable variable 222222222222222"
}
}
class childSecond {
; i can't set value here.
__new() {
msgbox % Father.childFirst.HaveToBeGlobal
}
}
}