摘要: https://blog.csdn.net/weixin_44797539/article/details/124560730 阅读全文
posted @ 2025-08-19 20:59 一刹流云散 阅读(4) 评论(0) 推荐(0)
摘要: 1. 适配器模式 (Adapter Pattern) 将一个类的接口转换成客户希望的另一个接口,使原本不兼容的类可以一起工作。 // 目标接口 public interface MediaPlayer { void play(String audioType, String fileName); } 阅读全文
posted @ 2025-08-19 19:16 一刹流云散 阅读(9) 评论(0) 推荐(0)