1c: Added DecoratorPattern - StringDecorator

This commit is contained in:
0nlineSam 2024-11-25 14:54:27 +01:00
parent 728dd877bd
commit ebab952bd9

View File

@ -0,0 +1,23 @@
package decorator;
import model.Item;
public abstract class StringDecorator extends Item {
protected Item wrappee;
public StringDecorator(Item item) {
this.wrappee = item;
}
public String getOverview() {
return wrappee.getOverview();
}
public String getDetails() {
return wrappee.getDetails();
}
public String getTitle() {
return wrappee.getTitle();
}
}