1、 实例概况
网站计算器是web应用程序的一项基本功能,用于统计使用网站的人数,可反应出网站的受欢迎程序,请使用单例模式设计计数器
2、实例类图
3、实例实现代码
3.1单例类ZC32Singleton
public class ZC32Singleton {
private static ZC32Singleton instance=null;
private int count;
private ZC32Singleton(){
}
public static ZC32Singleto