Design Problems
-
Creating Single Objects
-
How can be ensured that a class has
only one instance?
-
How can the sole instance of a class
be accessed globally?
-
Controlling Instantiation
-
How can a class control its instantiation?
-
How can the number of instances of a class
be restricted?
-
How can creating large numbers of
unnecessary objects
be avoided?