2022年4月19日

接口适配器模式

摘要: package com.life.design.adaper.interfaceadapter; public interface Interface4 { public void m1(); public void m2(); public void m3(); public void m4(); 阅读全文

posted @ 2022-04-19 20:36 金满仓 阅读(25) 评论(0) 推荐(0) 编辑

对象适配器模式

摘要: package com.life.design.adaper.objectadapter; public interface IVoltage5V { public int output5V(); } package com.life.design.adaper.objectadapter; pub 阅读全文

posted @ 2022-04-19 20:32 金满仓 阅读(24) 评论(0) 推荐(0) 编辑

类适配器模式

摘要: package com.life.design.adaper.classadapter; public interface IVoltage5V { public int output5V(); } package com.life.design.adaper.classadapter; publi 阅读全文

posted @ 2022-04-19 20:25 金满仓 阅读(10) 评论(0) 推荐(0) 编辑

桥接模式

摘要: package com.life.design.bridge; public abstract class Computer { protected Brand brand; public Computer(Brand brand) { this.brand = brand; } public vo 阅读全文

posted @ 2022-04-19 18:30 金满仓 阅读(19) 评论(0) 推荐(0) 编辑

装饰者模式

摘要: package com.life.design.decorator; public abstract class Coffee { private String des; private float price = 0.0f; public String getDes() { return des; 阅读全文

posted @ 2022-04-19 09:00 金满仓 阅读(14) 评论(0) 推荐(0) 编辑

导航