2022年4月21日

策略模式

摘要: package com.life.design.strategy; public interface Promotion { void show(); } package com.life.design.strategy; public class PromotionA implements Pro 阅读全文

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

模板方法模式

摘要: package com.life.design.template; public abstract class Cooking { public final void cookProcess() { pourOil(); heatOil(); pourVegetable(); pourSauce() 阅读全文

posted @ 2022-04-21 07:29 金满仓 阅读(16) 评论(0) 推荐(0) 编辑

导航