note 86156 added to language.oop5.patterns

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
The "red-neck singleton" presented by wbcarts is not a singleton, but a presentation of static class members.

Static members are shared by every instance of that class, and as such should work precisely as he describes using them.

Singleton pattern is used to ensure that there only ever exists one instance of the singleton class.
----
Server IP: 62.237.7.3
Probable Submitter: 88.112.53.246
----
Manual Page -- http://www.php.net/manual/en/language.oop5.patterns.php
Edit        -- https://master.php.net/note/edit/86156
Del: integrated  -- https://master.php.net/note/delete/86156/integrated
Del: useless     -- https://master.php.net/note/delete/86156/useless
Del: bad code    -- https://master.php.net/note/delete/86156/bad+code
Del: spam        -- https://master.php.net/note/delete/86156/spam
Del: non-english -- https://master.php.net/note/delete/86156/non-english
Del: in docs     -- https://master.php.net/note/delete/86156/in+docs
Del: other reasons-- https://master.php.net/note/delete/86156
Reject      -- https://master.php.net/note/reject/86156
Search      -- https://master.php.net/manage/user-notes.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.