Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Concrete classes - decorator pattern
public class Circle implements Shape {
@Override
public String draw() {
return "This is a circle !!!";
}
}
public class Rectangle implements Shape {
@Override
public String draw() {
return "This is a Rectangle !!!";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment