From d107c0f5de043617fe73721eab0b3c700d30ed11 Mon Sep 17 00:00:00 2001 From: CyC2018 Date: Sat, 7 Nov 2026 17:10:32 +0800 Subject: [PATCH] =?UTF-8?q?Update=20=E8=AE=BE=E8=AE=A1=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=20-=20=E6=A1=A5=E6=8E=A5.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 调整 AWT 中 peer 接口与各平台实现的说明。 --- notes/设计模式 - 桥接.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notes/设计模式 - 桥接.md b/notes/设计模式 - 桥接.md index d6f13ff5..da949b86 100644 --- a/notes/设计模式 - 桥接.md +++ b/notes/设计模式 - 桥接.md @@ -163,7 +163,7 @@ Sony.tuneChannel() ``` ### JDK 中的应用 -- AWT:组件类是抽象,java.awt.peer 中与平台相关的 peer 是实现,把窗口功能映射到不同的操作系统; +- AWT:组件类是抽象,java.awt.peer 中的 peer 接口是实现部分的接口,各平台的 peer 类(例如 sun.awt.windows 中的)是具体实现,把窗口功能映射到不同的操作系统; - JDBC:应用面向 JDBC 接口编程,各数据库厂商的驱动是实现。 ## 参考资料