适配器设计模式

4.适配器设计模式

调用接口的时候只需要接口的部分方法的时候,先创建一个中继器类进行转化,这样就可以选择性调用接口的方法

 

posted @ 2024-03-21 14:29  灵泽pro  阅读(13)  评论(0)    收藏  举报