Now we are starting to learn design patterns. About design pattern i did not give you any standard definition.
Only i tell you what i think about that. I think design patterns are the ways how to tackle different situations in your design/code which already faced our seniors and they make some solutions which are very good.
Now before starting the design patterns, here I tell you some thing about design pattern.
The biggest issue which mostly people face is that they know many design patterns, but they don’t know where they use. Means there are many situations where we can use some design pattern which we know, but we did not use. And many times there are many situations where we use any wrong design pattern.
So my personal opinion, design patterns are very easy, the main issue is how and when we use, which design pattern.
So I also try in every design pattern to make any real world scenario, where I try to fit our design pattern.
OK Lets start.
- Singleton Design Pattern
- Observer Design Pattern