使用多态性重构:告别复杂条件结构
DEV Community
·
OCP - 开放/封闭原则
DEV Community
·
装饰者模式
DEV Community
·
像钢铁侠一样升级:理解开放-封闭原则
DEV Community
·