装饰图案使用 [英] Decorator pattern using

查看:46
本文介绍了装饰图案使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



我正在尝试使用装饰模式编写程序以创建商店收据。您对使用什么方法有任何建议吗?

Hello,

I am trying to code a program using decorator pattern to create a store receipt. Do you have any suggestion on what approach to use?

推荐答案

请查看下面的文章,了解什么是Decorator模式。



在C#中理解和实现装饰模式 [ ^ ]
Please have a look into the below article to understand what is Decorator pattern.

Understanding and Implementing Decorator Pattern in C#[^]


这篇关于装饰图案使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆