10 2024 档案

摘要:访问者模式 行为和对象的解耦,元素内部传入this,实现多态 public interface Element { void accept(Visitor visitor); } public interface Visitor { void visit(Element element); } pu 阅读全文
posted @ 2024-10-18 14:16 lunamu 阅读(9) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示