1
0
mirror of synced 2025-01-18 22:41:43 +03:00

cleaning up some sentences. better flow

This commit is contained in:
Chris Woodford 2011-05-05 21:23:10 -04:00
parent 894b2614ed
commit e9d096e411

View File

@ -157,15 +157,15 @@ be treated exactly as a ``Component`` when it comes time to
persisting it.
The ``Decorator's`` constructor accepts an instance of a
``Component``, as defined by the ``Decorator`` pattern (using
constructor injection). The setDecorates/getDecorates methods have
been defined as protected to hide the fact that a ``Decorator`` is
decorating a ``Component`` and keeps the ``Component`` interface and
the ``Decorator`` interface identical.
``Component``, as defined by the ``Decorator`` pattern. The
setDecorates/getDecorates methods have been defined as protected to
hide the fact that a ``Decorator`` is decorating a ``Component`` and
keeps the ``Component`` interface and the ``Decorator`` interface
identical.
To illustrate the purpose of the ``Decorator`` pattern, the getName()
method has been overridden to append a string to the ``Component's``
getName() method.
To illustrate the intended result of the ``Decorator`` pattern, the
getName() method has been overridden to append a string to the
``Component's`` getName() method.
ConcreteDecorator
-----------------