开发者

object oriented programming in c++

开发者 https://www.devze.com 2022-12-25 19:45 出处:网络
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://source

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

精彩评论

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