What is the differences between facade pattern and abstarct factory pattern?

Adalarasan Sachithanantham picture Adalarasan Sachithanantham · Jun 25, 2012 · Viewed 17.5k times · Source

I'm not asking the interview point of view. I want to know the real time scenario of implemented in the projects like the struts framework etc.

Answer

Sumit Singh picture Sumit Singh · Jun 25, 2012

The facade pattern is used when you want to hide an implementation or it is about changing interface of some class or set of classes. Builder hides the process of construction by decomposing it in smaller steps.

Abstract factory pattern is used when you want to hide the details on constructing instances.
Provide an interface for creating families of related or dependent objects without specifying their concrete classes.