These are examples of various design patterns implemented in Java
FIRST DESIGN PATTERN
The Strategy Pattern defines a family of algorithms, encapsulates each one, and makes them interchangeable. Strategy lets the algorithm vary independently from clients that use it. "MiniDuckSimulator" is the main class for running the example.UML Diagram
SECOND DESIGN PATTERN
The observer Pattern defines one to many dependency between objects so that when one object changes state, all of its dependents are notified and are updated.NOTE: More Patterns will be updated soon.