Singleton: Difference between revisions
Content added Content deleted
m (added whitespace before the TOC, added other whitespace in the task's preamble.) |
|||
Line 1: | Line 1: | ||
{{task|Object oriented}} |
{{task|Object oriented}} |
||
A Global Singleton is a class of which only one instance exists within a program. |
A Global Singleton is a class of which only one instance exists within a program. |
||
Any attempt to use non-static members of the class involves performing operations on this one instance. |
Any attempt to use non-static members of the class involves performing operations on this one instance. |
||
<br><br> |
|||
=={{header|ActionScript}}== |
=={{header|ActionScript}}== |