What is the main difference between design patterns Decorator and Proxy.
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.

Слідкуй за CodeGalaxy

Мобільний додаток Beta

Get it on Google Play
Зворотній Зв’язок
Продовжуйте вивчати
тести з Java
Зареєструйся Зараз
або Підпишись на майбутні тести