What’s design pattern?

 

What’s a design pattern and what’s real use with them?

Actually design patterns are the solution for the general repetitive well known problems. Design pattern provides the core solution for their problems. Design patterns will have a name which points to key/solution to define the problem. The name gives an abstract idea on the problem which the pattern solves. In a design pattern a Problem describes the issue in a specific context. The Solution gives the key components, relationships, responsibilities etc… to resolve the problem. The solution will not be defined for a concrete or specific problem, rather than it will be in a generalized form. The consequences are the results and trade-offs on applying the problem. They’re critical to define the advantages and disadvantages on applying the pattern. Design patterns are based on Object oriented programming concepts and mainly described using C++/SmallTalk languages. The choice of language is purely user’s choice. Most of the high level languages like C++, C#, Java are fully complained with object oriented concepts. So it’s upto the user to choose between the languages.

More Reference:

Design Patterns – Wikipedia

Design Patterns (GOF)- Wikipedia