Categories
Contact Us

Cixi Xianghe Communication Equipment Co.,Ltd

Add:Dongfan Industrial Zone, Henghe Town, Cixi, Ningbo City, Zhejiang Province, China

Tel:86-0574-63191191

Mobile:86-15957487368

Fax:86-0574-63191191

Email:sales@xianghetx.com

Knowledge
Home > Knowledge > Content
The adapter invokes the physical entity that is wrapping the object
Feb 07, 2018

An adapter is an interface converter that can be a standalone hardware interface device that allows hardware or electronic interfaces to be connected to other hardware or electronic interfaces or to an information interface. For example: power adapter, tripod base adapter parts, USB and serial port adapter equipment.

In computer programming, adapter patterns (sometimes called package styles or wrappers) adapt the interface of a class to what a user expects. An adaptation allows classes that work together not to work together often because the interfaces are incompatible, by wrapping their own interfaces in an existing class.

Adapter mode is mainly used when the method defined in the interface can not meet the needs of the client or the method name or method interface defined in the interface conflicts with the client's requirements.

Two types of schemas: • Object Adapter Mode - In this adapter mode, the adapter holds an instance of the class it wraps around. In this case, the adapter calls the physical entity that is wrapping the object. Class Adapter Mode - In this adapter mode, adapters inherit from the implemented class (generally multiple inheritance).

Adapter does not have the data rate conversion function.


  • Newsletter
  • Categories
  • Contact Us

    Cixi Xianghe Communication Equipment Co.,Ltd

    Add:Dongfan Industrial Zone, Henghe Town, Cixi, Ningbo City, Zhejiang Province, China

    Tel:86-0574-63191191

    Mobile:86-15957487368

    Fax:86-0574-63191191

    Email:sales@xianghetx.com

  • QR Code
  • Copyright © Cixi Xianghe Communication Equipment Co.,Ltd All Rights Reserved.