第一种:单列模式
我个人理解就是一个类只实例化一次
static myclass instance=null;
public myclass
{
if(instance==null)
mc =new myclass();
}