Posts 装饰者模式
Post
Cancel

装饰者模式

装饰者模式动态地将责任附加到对象上。若要扩展功能,装饰者提供了比继承更有弹性的替代方案。

This post is licensed under CC BY 4.0 by the author.