Notes
Intro to design patterns

Content of the notes (2)
Page 1
- Take what varies and "encapsulate" it so it won't affect the rest of your code. The result? Fewer unintended consequences from code changes and more flexibility in your systems!
Multiple uses of Interface: Contract, Decoupling, Polymorphism, multiple inheritances.
decoupling means not highly dependent with other classes.
Clients should always be decoupled with Interfaces(as a bridge between client and implementation) and not directly coupled with implementations.

Page 2
- Favor composition over the interface
- Program to Interface, not to the implementation
- Strategy - defines a family of algorithms, encapsulate each one of them and make them interchangeable. Strategy lets algorithm vary independently from clients that we use it
Information
- Description
- Note on Intro to design patterns, created by Ravi Allishe on 18/07/2019.
- Created by
- Ravi Allishe
- Views
- 0
- Rating