Design Patterns
A design pattern is a named, reusable way to arrange classes to solve a problem that keeps coming up. Interviewers ask to see whether you can name the problem, pick one, and say when it is too much. It covers eight: Singleton, Factory Method, Observer, Strategy, Builder, Decorator, State and Adapter.
After this section you can explain each in under a minute, write a small Java version, and say when not to use it.
Topics in this section
- Singleton
- Factory Method
- Observer
- Strategy
- Builder
- Decorator
- State
- Adapter