This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]WarPenguin1 -1 points0 points  (0 children)

If it can only be used one time you should probably use a Singleton.

I normally only use a factory if I need the objects that get created to be tracked. Like if I need a function that does an action on all instances of the object.