标题:设计模式
取消只看楼主
思远
Rank: 1
等 级:新手上路
帖 子:75
专家分:0
注 册:2007-4-25
 问题点数:0 回复次数:0 
设计模式
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 
2008-04-21 10:18



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-210170-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.402883 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved