Advertisement
Guest User

Untitled

a guest
Dec 21st, 2014
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. package com.company.Pattern.DeractorPattern;
  2.  
  3. /**
  4. * Created by jtao on 12/21/14.
  5. */
  6. public class BorderShape implements Shape {
  7. private Shape shape;
  8.  
  9. public BorderShape(Shape shape) {
  10. this.shape = shape;
  11. }
  12.  
  13. @Override
  14. public void draw() {
  15. shape.draw();
  16. System.out.println("with border");
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement