Facade pattern allows to hide complexity of system and provide simple interface to client of the service.

Before going through programming example, let’s understand a real life example, Shopkeeper. In shopkeeper, Many items are available but custom doesn’t know the exact location of the item in the store so we…

Factory is a creational design pattern which helps hiding object creation process.

Pattern Type — Creational

Benefits -

  • Object creation can be independent of the class implementation.
  • Adding support of new type of object is very easy
  • Logic of object creation is hidden

Type of patterns

  • Simple Factory pattern: This design allows to create objects…

Hardik Patel

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store