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.

OK I get it, but it's toally unclear for someone who will buy one of our modules.

I prefer

MyType:AType = Atype.Create(params)

And Create is a function inside the AType declaration that returns an AType. Create also often initilises at the same time, hense the params I pass in. But this is also why if you extend AType to BType you can't override function Create with different parameters...