设计模式
public class student{
private static student stu;
public static student Stu
{
get
{
if(stu==null)
{
stu=new student();
}
return stu;
}
}
}
请问这是哪个设计模式?
A.prototype B.singleton C.abstract factory D.builder
这4种模式有什么区别?
2008-04-21 10:18
2008-04-21 10:34
2008-04-21 11:49