by
Lessons:24Length:2.4 hours
  • Overview
  • Transcript

3.2 Extract Class

Similar to Extract Method, Extract Class intends to give more meaning or importance to a piece of code you have. It is the pattern used to remove duplicate code in a more complex situation rather than just a simple method. An entire concept comes up that begs to be put into its own class.