Beverage

+description: str

+description()

+cost()

HouseBlend

+description: str

+description()

+cost()

DarkRoast

+description: str

+description()

+cost()

Espresso

+description: str

+description()

+cost()

CondimentDecorator

+description: str

+description()


Milk

+beverage: Beverage

+description()

+cost()

Mocha

+beverage: Beverage

+description()

+cost()

Soy

+beverage: Beverage

+description()

+cost()

Whip

+beverage: Beverage

+description()

+cost()

装饰者模式-example

装饰者模式-example

2019-06-02 18:11:15 0 70
这里是评论

相关推荐