Builder Design Pattern

  1. There could be a change in the order of parameters passed in the constructor.
  2. You have to pass all the parameters, doesn't matter whether you want it or not.
  1. Using Setters methods.
  2. Using Builder design.

--

--

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