摘要: namespace ConsoleApplication1{ class Program { static void Main(string[] args) { LightSimpleFactory lf = new LightSimpleFactory(); light l = lf.create("bulb"); l.TurnOn(); l.TurnOff(); Console.WriteLi... 阅读全文
posted @ 2009-07-16 10:33 大有 阅读(145) 评论(0) 推荐(0)