Wiki Home

Abstract Factory Use Cases

Namespace: People

I'm interested in opinions on when to use Object Factories and when to subclass controls. For example, let's say that I want to create a command button with bold text. I could have a button factory that could return a button to me with bold text or I could subclass my button base class and create a totally new class.

To me it makes more sense to use an Object Factory because this will give me one less class to keep track of.....

At any rate, any opinions would be welcome. Scott Dinwiddie
Have you seen Abstract Factory?

Ask and ye shall receive. (Thanks)

Category Design Patterns
( Topic last updated: 2000.07.07 06:26:14 PM )