patterns/decorator/coffeewithsize/decaf.d

17 lines
232 B
D
Raw Normal View History

2022-12-05 07:38:19 +00:00
module decorator.coffeewithsize.decaf;
import decorator.coffeewithsize.beverage;
class Decaf : Beverage
{
this()
{
description = "Decaf Coffee";
}
override double cost()
{
return 1.05;
}
}