树木中 发表于 2025-3-25 05:05:17

R. Sadhukhan,T. K. Chowdhuri,S. K. DattaSuppose you’re working with a class your colleague wrote, and you want to extend that class’ functionality. How would you do it, without modifying the original code? Well, one approach is inheritance: you make a derived class, add the functionality you need, maybe even . something, and you’re good to go.

Nmda-Receptor 发表于 2025-3-25 09:16:38

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

法律的瑕疵 发表于 2025-3-25 14:14:27

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

Flinch 发表于 2025-3-25 17:38:05

Floriculture and Ornamental PlantsWhen we looked at the Decorator design pattern, we saw the different ways of enhancing the functionality of an object. The Proxy design pattern is similar, but its goal is generally to preserve exactly (or as closely as possible) the API that is being used while offering certain internal enhancements.

不来 发表于 2025-3-25 23:54:35

http://reply.papertrans.cn/27/2685/268413/268413_25.png

judicial 发表于 2025-3-26 03:29:32

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

燕麦 发表于 2025-3-26 04:20:52

FactoriesThis chapter covers two GoF patterns: . and .. These patterns are closely related, so we’ll discuss them together. The truth, though, is that the real design pattern is called . and that both Factory Method and Abstract Factory are simply variations that are important, but certainly not as important as the main thing.

防御 发表于 2025-3-26 11:28:11

BridgeOne very common situation that occurs when designing software is the so-called . where the number of related entities required to represent all possible states “explodes” in a Cartesian product fashion. For example, if you have circles and squares of different colors, you might end up with classes such as .. Clearly nobody wants that.

bromide 发表于 2025-3-26 14:56:06

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

高歌 发表于 2025-3-26 18:36:47

http://reply.papertrans.cn/27/2685/268413/268413_30.png
页: 1 2 [3] 4 5 6
查看完整版本: Titlebook: Design Patterns in .NET Core 3; Reusable Approaches Dmitri Nesteruk Book 20202nd edition Dmitri Nesteruk 2020 Design Patterns.C#.F#..NET.R