How is Bridge pattern different from Adapter pattern?

  • The Bridge pattern aims to change the interface of an object while the Adapter pattern aims to reuse an existing object.
  • The Bridge pattern allows for multiple inheritance while the Adapter pattern only allows for single inheritance.
  • The Bridge pattern decouples an abstraction from its implementation while the Adapter pattern modifies the interface of an existing class to a client class.
  • The Bridge pattern is a structural pattern while the Adapter pattern is a behavioral pattern.
The Bridge pattern decouples an abstraction from its implementation while the Adapter pattern modifies the interface of an existing class to a client class.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *