progtech zh

This commit is contained in:
anon
2024-06-07 11:46:34 +02:00
parent 5141ce8dc1
commit 6843d11189
11 changed files with 1179 additions and 0 deletions

@ -0,0 +1,10 @@
class SugarDecorator extends HotDrinkDecorator {
@Override
public String toString() {
return wrappedObject.toString() + " + sugar";
}
public SugarDecorator(HotDrink wo) {
super(wo);
}
}