Why is a proxy pattern a Structural pattern and why is a State Pattern behavior pattern?

why the proxy pattern is a structural pattern and why the state pattern is behavioral. What are the criteria for defining a new pattern to be considered as structural or behavioral?

+3
source share
2 answers

Templates are structural when you focus on how relationships between objects are organized to form larger components, while behavioral patterns focus on the distribution of responsibilities of the object and the relationship between them.

, , , , .

+5

.

: , . - , . , .

: , . . , , . - . , .

, , /, , .

- . ( ) , , , .

, .

+3

All Articles