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

View File

@ -0,0 +1,16 @@
// Decorátor
abstract class HotDrinkDecorator extends HotDrink {
HotDrink wrappedObject = null;
public int getBoilingTemperature() {
return wrappedObject.getBoilingTemperature();
}
public String getKeyComponent() {
return wrappedObject.getKeyComponent();
}
public HotDrinkDecorator(HotDrink wo) {
wrappedObject = wo;
}
}