86-18206067815
enLanguage

Adaptation Mode Of Wall Plug Adapter

Jan 06, 2021

In computer programming, the wall plug adapter mode (sometimes called packaging style or packaging) adapts a class of interface to what the user expects. An adaptation allows classes that normally cannot work together because of interface incompatibility to work together, by wrapping the class's own interface in an existing class.

The wall plug adapter mode is mainly used when the method defined in the interface cannot meet the needs of the customer, or the name of the method defined in the interface or the method interface conflicts with the customer's needs.

Two types of modes: Object wall plug adapter mode-In this wall plug adapter mode, the wall plug adapter holds an instance of the class it wraps. In this case, the wall plug adapter calls the physical entity of the wrapped object. Class wall plug adapter mode-In this wall plug adapter mode, the wall plug adapter inherits from the implemented class (generally multiple inheritance).

The wall plug adapter does not have the data rate conversion function.

In computer programming, wall plug adapters include: container wall plug adapters, iterator wall plug adapters, functional wall plug adapters, etc.


Send Inquiry