Code Refactoring 5

Channel:
Subscribers:
1,330,000
Published on ● Video Link: https://www.youtube.com/watch?v=NhFmQl1FA5Y



Duration: 19:38
30,943 views
360


Code is Here: http://goo.gl/gDdc4

In this part of the code refactoring tutorial, I will show you how to replace a constructor with a factory method in 2 code examples.

I also received a challenge from one of you guys that I will solve. The challenge involves how to create a singleton factory method. It sounds more complicated than it is, but by watching this you'll learn a lot.







Tags:
Code Refactoring
Factory Method
design pattern factory method
Singleton
design patterns factory method
Constructor
Java
Java (programming Language)