Parameters to constructor

BlitzMax Forums/BlitzMax Beginners Area/Parameters to constructor

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.

A Simple Factory Pattern returns an instance of one of several classes depending upon the parameters passed to the factory method, which is something that constructors alone cannot do.
That's an Abstract Factory Pattern. I don't believe several classes is a requirement, but I don't have any books here to check it.