Design Patterns: Factories VS Abstract Factories

T

tim

What is the difference between Factories and Abstract Factories? Is the
Abstract Factory just the defined Abstract Class with its Abstract
Methods?
 
O

Oliver Wong

What is the difference between Factories and Abstract Factories? Is the
Abstract Factory just the defined Abstract Class with its Abstract
Methods?

As the name implies, an the difference between Factories and Abstract
Factories is that the factories are abstract in the latter, whereas they are
typically concrete in the former.

Usually with Abstract Factory, you'll have a "root" factory which
produces the abstract factory, which produces the actual objects you're
interested in.

- Oliver
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top