Local database reading edition

When should i use Singleton ?

Reconstructed from database records, not a captured original forum layout. Dates and display names are retained as recorded; timezone and real-world identity are not inferred. Historical advice, contact details and offers are not current. Original markup is shown as inert text.

Forum index · Object Oriented Design

Opening post

Asha · 2001-02-15 12:55:32

Use singletons when you want only one instance of a certain class in your system at any given time. An example could be a class that does caching.You wouldn't want two such objects, since each would have to cache the same data. Grabbing redundant resources would be wasteful. It is better to centralize the cacheing inside one instance. Asha Balasubramanyan http://www.ammu.org

Source notes

MyCommunity/nandighosha.org.zip!/forum/tools/snitz_forums_2000.mdb
Table: FORUM_TOPICS + FORUM_REPLY · record IDs: 35