Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
The abstract Shape Decorator class
public abstract class ShapeDecorator implements Shape{
protected Shape decoratedShape;
public ShapeDecorator(Shape decoratedShape){
this.decoratedShape = decoratedShape;
}
public void draw(){
decoratedShape.draw();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment