移植 发表于 2025-3-25 05:39:31

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

离开真充足 发表于 2025-3-25 10:02:11

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

阶层 发表于 2025-3-25 12:09:28

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

根除 发表于 2025-3-25 19:43:40

https://doi.org/10.1007/978-3-642-47354-8The 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-25 22:01:09

Zuverlässigkeit und BequemlichkeitFor 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.

Mystic 发表于 2025-3-26 02:56:24

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

情节剧 发表于 2025-3-26 04:36:00

https://doi.org/10.1007/978-3-662-07268-4If you want to perform similar operations on a collection of different objects with different interfaces, you can combine these operations in a separate class – the Visitor.

Diaphragm 发表于 2025-3-26 10:57:03

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

Choreography 发表于 2025-3-26 14:22:37

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

outer-ear 发表于 2025-3-26 17:05:43

http://reply.papertrans.cn/27/2685/268420/268420_30.png
页: 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