Decorator - a pattern that dynamically adds features to the object.
Proxy - a pattern that replaces another object and controls access to that object (but it can't be considered as adding new features).
Both patterns are structural and have similarities, so they can be compared.
Ввійдіть щоб вподобати
Ввійдіть щоб прокоментувати