Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.company.Pattern.DeractorPattern;
- /**
- * Created by jtao on 12/21/14.
- */
- public class BorderShape implements Shape {
- private Shape shape;
- public BorderShape(Shape shape) {
- this.shape = shape;
- }
- @Override
- public void draw() {
- shape.draw();
- System.out.println("with border");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement