gib65

Member Since 03 Apr 2015
Offline Last Active Apr 22 2015 08:05 PM
-----

Topics I've Started

Question About Decorator Pattern

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.


"