
设计模式
shinlgienls
这个作者很懒,什么都没留下…
展开
-
设计模式_工厂模式
//对于这种可能会不断变化的方法,最好的解决方案就是用接口 Interface Iprice { void Price_Count(); } //-----------计算价格的业务逻辑start//定义不同的结算类去实现他 Class Price1:Iprice { public void Price_Count() {翻译 2009-10-29 23:30:00 · 544 阅读 · 0 评论 -
工厂模式_酒店管理guoyz_1原创
namespace SysCommon.RealtyModel.Hotel{ /// /// 酒店的接口 /// public interface IHotelManage { string HotelManage(string str); } } namespace SysCommon.Realt原创 2009-10-31 00:41:00 · 675 阅读 · 0 评论