Overriding Create()

BlitzMax Forums/BlitzMax Beginners Area/Overriding Create()

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

@Swift.

You can tho override a create Method. So what Ive spent all day doing is changing this
MyType:AType = AType.create()

Type AType
Function MyType:AType()
local Temp:Atype = new Atype
..
..
return temp
end function
EndType

to
MYType:AType    = New AType.Create()

Type AType
Method Create:AType ()
..
..
return Self
End Method
End Type

Then I can override the Create Method.