Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

but also the next sentence:

> ...The important aspect of this pattern is that it lets decorators appear anywhere a VisualComponent can. That way clients generally can't tell the difference between a decorated component and an undecorated one, and so they don't depend at all on the decoration.

and further on:

> The decorator conforms to the interface of the component it decorates so that its presence is transparent to the component's clients.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: