您的位置:首页 > 其它

Core Design Patterns(11) Abstract Factory 抽象工厂模式

2008-03-16 00:25 465 查看
VS 2008

针对多个平行产品体系的产品创建问题,使用抽象工厂模式

1. 模式UML图

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

SqlUser.cs



using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

OracleUser.cs



using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

ITopic.cs



using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

SqlTopic.cs



using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

OracleTopic.cs



using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

IDALFactory.cs

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

SqlFactory.cs



using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

OracleFactory.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.AbstractFactory.DAL;

Output


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