设计模式
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种模式有什么区别?
搜索更多相关主题的帖子:
stu 模式 public get static