I just thought of writing this tutorial about Design patterns since I didn't find a good website with a simple real time example. I found some, but they explained the logic using Swings which I'm not used to. I tried my best to make sure that the examples are simple and clear.
- Creational Pattern:
- These design patterns provides way to create objects while hiding the creation logic, rather than instantiating objects directly using new operator. This gives program more flexibility in deciding which objects need to be created for a given use case.
- Structural Pattern:
- These design patterns concern class and object composition. Concept of inheritance is used to compose interfaces and define ways to compose objects to obtain new functionalities.
- Behavioral Pattern:
- These design patterns are specifically concerned with communication between objects. 4 J2EE Patterns These design patterns are specifically concerned with the presentation tier. These patterns are identified by Sun Java Center.