title: In which scenario do we use the Factory Pattern and in which the Singleton Pattern?
body: <p>Please help me to understand the Factory pattern and the Singleton pattern, when we need to use the Factory pattern and when to use the Singleton pattern.</p>
  
  <p>What is the main advantage/disadvantage of one over the other?</p>
  
  <p>Any suggestion (explanation) will help me lot.</p>