网站介绍:文章浏览阅读409次。装饰模式trait Fruits { def price(): Double def name(): String}trait Apple extends Fruits { abstract override def price() = super.price..._scala 装饰模式
- 链接地址:https://blog.csdn.net/laopif/article/details/85182031
- 链接标题:scala设计模式--装饰模式_scala 装饰模式-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:8139
- 网站标签:scala 装饰模式