What is Adapter Design Pattern: A brief explanation
What is Adapter Design Pattern? Adapter Design Pattern is a structural design pattern that can somewhat be compared to real-life problems we face with plugs. Before we roll out the definition, let us think of a real-life example. If you have ever travelled and stopped by a hotel you might have needed an extra adapter to plug your phone’s or laptop’s charger into the hotel’s wall outlet. This especially happens when you travel to a foreign nation. So, what are the adapters? Adapters are connectors that change the plug shape to match the electrical outlet. This is exactly what the adapter design pattern does. The adapter design pattern’s purpose is to lay down criteria that make classes work together that could not otherwise because of incompatible interfaces. The intent is to convert the interface of one class into another interface so that it becomes compatible with what the client expects. The adapter is also known as wrapper. Let us see, what is adapter design pattern?
What is Adapter Design Pattern: A brief explanation
Read the full story here: https://www.decipherzone.com/blog-detail/what-is-adapter-design-pattern
As mentioned earlier, the adapter design pattern falls in the category of structural design patterns. Structural patterns are mainly concerned with the composition of classes and objects. They follow the inheritance principle of object-oriented paradigms. The adapter design pattern makes one interface conform to another, providing a uniform abstraction of different interfaces. So, how do we define – what is adapter design pattern?
Read also: "Decorator design pattern in java with examples"
Putting everything together we have discussed so far – The adapter design pattern proposes a way to convert the interface of a class into another interface, whatever is expected by the client. Adapter Design Interface allows us to design our system in such a way that allows incompatible classes to work together. What is the motivation of object adapter design pattern? Why would we adhere to such a concept?
Articles from Mahipal Nehra
View blogThe software development industry progresses through continuous evolution where people try to solve ...
Microservice Architecture or Microservices are increasingly being used in the software industry to c ...
Web Design plays an important role in any marketing strategy or positively impacting user experience ...
You may be interested in these jobs
-
Opening for Devops Engineer(EKS) @ Pune
Found in: Appcast Linkedin IN C2 - 1 day ago
Quess IT Staffing Pune, IndiaHi, · Exp: 2-5 Years · Location: Pune · Infrastructure · The skills needed to manage correctly the IAC code create for the Modernization Garage: · Knowledge of AWS services (ex: EKS, EC2, Autoscaling,SecurityGroup, EFS, RDS, S3, IAM) · Knowledge of Terraform to create the AWS Res ...
-
PHP Developer
Found in: Appcast Linkedin IN C2 - 10 hours ago
Appentus Jaipur, India· PHP / Laravel developer duties and responsibilities · Develop, record and maintain cutting edge web-based PHP applications on portal plus premium service platforms · Build innovative, state-of-the-art applications and collaborate with the User Experience (UX) team · Ensure HTM ...
-
Senior Software Engineer
Found in: Appcast Linkedin IN C2 - 3 days ago
BigThinkCode Chennai, IndiaAt BigThinkCode, our technology solves complex problems. We are currently looking for Elixir engineers to join and work with our OTT platform engineers of talented experts at Chennai. · With BigThinkCode, you will have the opportunity of working with top companies in projects whe ...
Comments