摘要:
namespace ConsoleApp4 { class Client { static void Main(string[] args) { // 南昌工厂制作南昌的鸭脖和鸭架 AbstractFactory nanChangFactory = new NanChangFactory(); Ya 阅读全文
2020年4月1日 #
摘要:
namespace ConsoleApp6 { class Program { static void Main(string[] args) { FactoryBase shanghai=new ShangHiaFactory(); YaBo yaBo = shanghai.CreateYaBo( 阅读全文
摘要:
1、饿汉式(静态常量)[可用] public class Singleton { private static Singleton INSTANCE = new Singleton(); private Singleton(){} public static Singleton getInstanc 阅读全文