tags:

views:

74

answers:

2

how do i make only 1 object creation of any class?

+1  A: 

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

Alex Martelli
+1  A: 

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

EDIT: Updated link from C# to C++

mcabral