贿赂 发表于 2025-3-26 21:40:52

http://reply.papertrans.cn/27/2685/268420/268420_31.png

天空 发表于 2025-3-27 03:38:51

Mediator,The mediator pattern enables the flexible interaction of several objects/classes that may not know each other. The mediation function can be varied very flexibly, but can also lead to very extensive implementations. In contrast to the Observer or the Chain of Responsibility, the Mediator also has its own tasks to perform.

Countermand 发表于 2025-3-27 08:14:15

http://reply.papertrans.cn/27/2685/268420/268420_33.png

Ophthalmologist 发表于 2025-3-27 09:28:04

Strategy,The strategy pattern is used when a task can be solved with different approaches and a decision is to be made at runtime. It belongs to the behavior patterns. The addition of further solution strategies is possible at any time without any problems.

Noctambulant 发表于 2025-3-27 16:40:07

Composite,The Composite Pattern is a structural pattern and describes how objects can be combined to form meaningful units. It is used, for example, in tree representations of directories or similar structures.

座右铭 发表于 2025-3-27 20:05:33

Flyweight,The Flyweight pattern is a variant to manage small objects that should be reused frequently. Think of Date() objects or Name objects in statistics. You don’t have to create a new object each time and thus use memory.

Habituate 发表于 2025-3-28 01:21:00

http://reply.papertrans.cn/27/2685/268420/268420_37.png

镶嵌细工 发表于 2025-3-28 04:19:05

http://reply.papertrans.cn/27/2685/268420/268420_38.png

Lymphocyte 发表于 2025-3-28 07:29:03

Factory Method,The Factory Method uses inheritance to create individual concrete objects, which distinguishes it from the Abstract Factory. Beyond that, however, there are many similarities between these two patterns. There are several variants for the implementation of the Factory Method pattern.

摇晃 发表于 2025-3-28 11:58:39

Prototype,For the creation of similar objects, which do not differ significantly from each other, the use of the prototype pattern is suitable. It is based on the cloning of objects and their subsequent modification. But beware: There are pitfalls to be aware of when cloning.
页: 1 2 3 [4] 5 6 7
查看完整版本: Titlebook: Design Patterns with Java ; An Introduction Olaf Musch Textbook 2023 The Editor(s) (if applicable) and The Author(s), under exclusive lice