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.

"But this is also why if you extend AType to BType you can't override function Create with different parameters..."

But what is why? I don't see anything that would preclude that.

If BType is an extension of AType, then there's no reason both of these couldn't work:


MyType:AType = Atype.Create(param1#, Param2)
MyType:BType = Btype.Create(param1:Blah)