vendredi 30 août 2019

Why Proxy pattern is categorized in Structural pattern?

According to Structural Patterns, they focus on how classes and objects are composed to form larger structures.

Adapter and Decorator fit this definition. But for proxy it's just an interaction between the subject and the real object, it's not combining the anything to give a new object. Shouldn't it be categorized as behavioral Pattern?

I have read different Post and also related StackOverflow Question like Why is proxy pattern Structural Pattern and why is State Pattern behavioral pattern? and Why decorator is a structural and not behavioral design pattern?

But none answer the Question.

Aucun commentaire:

Enregistrer un commentaire