Design Patterns Explained (4) - Adapter

xiaoxiao2021-03-06  49

Intent: Convert The Interface of a Class INTO Another Interface That The Clients Expect. Adapter Lets Classes Work Together That Could Not OtherWise Because of Incompatible Interface.

For the an abstract class we are defining or already harve.

Solution: WARP IT

VARIATION: OJECT Adapter, Class Adapter.

Object Adapter Pattern - CompositionClass Adapter Pattern - Inheritance

Difference Between Facade and Adapter

Facade adapter area? Yes yes there? Yes yes ie yes yes no yes yes no yes no yes no yes no yes no yes no

转载请注明原文地址:https://www.9cbs.com/read-116391.html

New Post(0)