开发者

object oriented programming in c++

how do i make only 1 object creation of开发者_JS百科 any class?


It's known as the Singleton design pattern. There are many tutorials for it, e.g. one here.


Check out the Singleton Pattern: http://sourcemaking.com/design_patterns/singleton

EDIT: Updated link from C# to C++

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜