I thought I knew OOP, oops.

BlitzMax Forums/BlitzMax Programming/I thought I knew OOP, oops.

check this out


Strict
Type testType
	Field a:Int
	Method update()
		a:+1
	EndMethod
EndType

Local test1: testType = New testType
Local test2: testtype = New test1

For Local b = 1 To 5
	test1.update
	test2.update
Next

Print test1.a
Print test2.a