This repository has been archived on 2022-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
patterns/decorator/coffee/beverage.d

15 lines
215 B
D
Raw Normal View History

2022-11-11 12:51:42 +00:00
module decorator.coffee.beverage;
abstract class Beverage
{
protected:
string description = "Unknown Beverage";
public:
string getDescription()
{
return description;
}
double cost();
}