Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// Do this
Component c, c1;
c = new ConcreteComponent();
c1 = new ConcreteDecorator(c);
// Do not
ConcreteComponent c;
c = new ConcreteComponent();
ConcreteDecorator c1;
c1 = new ConcreteDecorator(c);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.