您的位置:首页 > 其它

Core Design Patterns(15) Template Method 模版方法模式

2008-03-23 22:44 465 查看
VS 2008

父类定义了一个模版方法,这个模版方法规定了一个算法几个步骤的执行顺序,它的子类可以更改这个算法某几个步骤的具体实现。

1. 模式UML图

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

WebSignIn.cs



using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

WinSignIn.cs



using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

Client

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using DesignPattern.TemplateMethod.BLL;

Output

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: