本文介绍了实用类和Facade Pattern的例子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我读到了Facade模式,并相信它通过提供一种更简单,更简洁的方式来隐藏子系统的复杂性。



如果我创建一个实用程序类DateUtility用于管理与日期相关的活动,例如它可以使用GetDateFormatDDMMYYY,CompareDate等方法。所有与日期相关的实用程序方法都是静态的。



将此类DateUtilityqualify为作为Facade Pattern的一个例子,因为我正在创建一个用于管理日期的子系统。



我正在使用.NET。



回应将受到高度赞赏。



谢谢。



问候,

Sakshi

I read about Facade pattern and believe that it hides the complexity of a subsystem by offering a simpler and more concise way to access it.

If I create a utility class DateUtility to manage date related activities like it can have methods like GetDateFormatDDMMYYY, CompareDate etc..all date related utility methods which are static.

Will this class DateUtilityqualify to be an example of Facade Pattern as I am creating a sub system for managing dates.

I am using .NET.

Responses will be highly appreciated.

Thanks.

Regards,
Sakshi

推荐答案


这篇关于实用类和Facade Pattern的例子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-23 06:56