摘要: 一、适配器模式介绍 二、适配器模式引入 需求: 1.类适配器模式 介绍: 代码实现(Java): //被适配的类 public class Voltage220V { //输出220V的电压 public int output220V() { int src = 220; System.out.pr 阅读全文
posted @ 2021-07-03 23:36 狂热搬砖家 阅读(52) 评论(0) 推荐(0)