摘要:
class JianDanGongChang { static void Main(string[] args) { Factory factory=new LianXiangFactory(); DianNao dianNao=factory.Create(); dianNao.Print(); } } public abstract class DianNao { public abstrac 阅读全文
摘要:
using System; namespace Application { class JianDanGongChang { static void Main(string[] args) { Factory factory=new Factory(); DianNao diannao=factory.Create("Lx"); diannao.Print(); } } public abstra 阅读全文