Saurav's Low Level Design Template ๐ป ๐
The repository holds the implementation of Design Patterns in Java. Feel free to fork the repo and use
it for understanding, modifying and trying out the implementation in real time.
Design Patterns implemented ๐ฅ
Pattern 1: Singleton Pattern ๐
Lazy Implementation View Code
Synchronized Implementation View Code
Eager Implementation View Code
Pattern 2: Decorator Pattern ๐จ
Alternate Implementation View Code
Headfirst Design Book Example View Code
Newsletter Example View Code
Class Explosion Implementation View Code
Alternate Implementation (violates Open-Closed principle) View Code
Effective Implementation (Decorator Pattern) View Code
Pattern 3: Factory Method Pattern ๐ญ
Headfirst Design Book Example View Code
Inefficient Implementation View Code
Simple Factory Pattern View Code
Factory Method Pattern View Code
Newsletter Example View Code
Inefficient Implementation View Code
Simple Factory Pattern View Code
Factory Method Pattern View Code
Pattern 4: Command Pattern โก
Headfirst Design Book Example View Code
Newsletter Example View Code
Pattern 5: Observer Pattern ๐
Headfirst Design Book Example View Code
Inefficient Implementation View Code
Atual Implementation View Code
Java In Built Implementation View Code
Newsletter Example View Code
Pattern 6: Strategy Pattern ๐ฑ
Newsletter Example View Code
Pattern 7: Facade Pattern โ
Newsletter Example View Code