Contact Us

Ningbo Lianda Plastic Pipe Co.,Ltd

Address: Ningbo Lianda Plastic Pipe Co.,Ltd, Wengfang Village, Hemudu Town

Tel: +86-0574-62952153

Fax: +86-0574-62952135

Mobile: +8615905846680

Home > Knowledge > Content

Adapter using method

Ningbo Lianda Plastic Pipe Co.,Ltd | Updated: Feb 03, 2016

Using a class at the same time to inherit the interface and the known class, the use of known classes in the definition of methods and attributes, etc., to achieve the definition of the interface (mainly using the method of overloading the interface method). Such as the base class for other business classes, that is, the class adapter and the known class. If the known class changes, just modify the class adapter, you can meet the implementation of the interface.