Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

What is the main difference between Adapter and Proxy design pattern?

Pragya Keshap answered on February 10, 2023 Popularity 2/10 Helpfulness 1/10

Contents


More Related Answers

  • What are the different scenarios for using Proxy design pattern?
  • What is a Proxy Design Pattern?
  • proxy design pattern
  • What is the difference between Decorator and Proxy patterns in Java?
  • proxy pattern vs decorator pattern
  • Describe Proxy Design Pattern. Where we can find already implemented Proxy Design Pattern in Spring?

  • What is the main difference between Adapter and Proxy design pattern?

    0

    Adapter pattern provides a different interface to an object. But the

    Proxy always provides same interface to the object.

    Adapter is like providing an interface suitable to client’s use. But

    Proxy is same interface that has additional feature or check.

    E.g. In electrical appliances we use Adapter to convert from one

    type of socket to another type of socket. In case of proxy, we have a

    plug with built-in surge protector. The interface for plug and the

    original device remains same.

    https://www.baeldung.com/java-structural-design-patterns#:~:text=The%20main%20differences%20between%20Adapter,without%20modifying%20the%20source%20code.

    Popularity 2/10 Helpfulness 1/10 Language java
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Feb 10 2023
    Pragya Keshap
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.