What is the main difference between design patterns Decorator and Proxy.
Explanation
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
Cosmo
Зареєструйся Зараз
або Підпишись на майбутні тести