Hi Gents I'm getting Null pointer exceptions when attempting to override a parents Create method e.g.
This generates an unhandled exception on this line :
Can you help?
Regards
Merx
Type testA Field x:Int Field y:Float Function Create:testA(newx:Int) newA:testA = New testA newA.x = newX Return newA End Function End Type Type testB Extends testA Function Create:testB(newx:Int) Return testB(Super.Create(newx)) End Function End Type 'Test Harness Graphics 640, 480, 0 Global test:testB test = testB.Create(10) test.y = 5 While Not KeyHit(KEY_ESCAPE) Cls Flip FlushMem Wend
This generates an unhandled exception on this line :
test.y = 5What I'm trying to do is ensure the old version of create is called by default in the new version so I can then add additional elements. Unfortunatly I'm doing something fundamentally wrong?!
Can you help?
Regards
Merx