Jump to content


Photo

Question About Decorator Pattern


  • Please log in to reply
No replies to this topic

#1 gib65

gib65

    New Member

  • Members
  • Pip
  • 1 posts

Posted 03 April 2015 - 03:51 PM

Hello,

 

I had a question about the Decorator Pattern: in Head First Pattern Designs, the pointer to the Component instance inside each Decorator is defined in the concrete Decorator classes. Why not in the abstract Decorator class? It's been a while since I programmed in Java, so maybe this isn't possible, but I'm sure it must be.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users