Repository to keep my code for Design Patterns in Java
- Assuming you have cloned this repository, you can navigate to the specific folder using CMD/Terminal and run
"javac -d . *.java"
- Then run
java "packagename"."Main class Name"
You can find out the package name and the main class name while reading through the code.
Chapter 1: Learnt a few Design Principles such as Composition Over Inheritance. Main Pattern learnt: Strategy Pattern.
Chapter 2: Main Pattern Learnt: Observer Pattern.
Chapter 3: Decorator Pattern