Click to See Complete Forum and Search --> : singleton class


sattenapalli
February 8th, 2005, 08:29 AM
what is singleton class?what are its advantages?elaborate..

TheCPUWizard
February 8th, 2005, 08:40 AM
There can be only a single instance of a singleton. The advantage is that all users communicate with the same object without having to explicitly pass a reference to the object through out the code or using a global variable

sattenapalli
February 8th, 2005, 08:46 AM
How can I implement singleton class?Explain with sample program.

TheCPUWizard
February 8th, 2005, 09:01 AM
There are hundreds of existing samples...Do a search, if you have questions regarding a specific sample, I will try to help....

gurus help those who help themselves...ps:we dont do homework...

Ejaz
February 8th, 2005, 09:09 AM
Have a look at Exploring the Singleton Design Pattern (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/singletondespatt.asp)

Andreas Masur
February 8th, 2005, 09:13 AM
Singleton (http://home.earthlink.net/~huston2/dp/singleton.html)...

Graham
February 8th, 2005, 09:42 AM
Did no-one else think that they sounded like homework questions?

A "please" would have been nice...

cilu
February 8th, 2005, 10:00 AM
Did no-one else think that they sounded like homework questions?

A "please" would have been nice...
The posters of these days... ;)

Andreas Masur
February 8th, 2005, 10:58 AM
Did no-one else think that they sounded like homework questions?

A "please" would have been nice...
Well...that is why they only got a link (cost me about 10 seconds copy/paste)....otherwise, I might have posted a little bit more... :D

TheCPUWizard
February 8th, 2005, 11:00 AM
Andreas (and Ejaz) you are a kinder man than I....

Andreas Masur
February 8th, 2005, 11:16 AM
Andreas (and Ejaz) you are a kinder man than I....
Well...nah....it is only because it is Tuesday....and Tuesday is my generous day... ;)

TheCPUWizard
February 8th, 2005, 12:11 PM
Especially on THIS Tuesday - Happy Mardi Gras :D

cilu
February 8th, 2005, 04:01 PM
Especially on THIS Tuesday - Happy Mardi Gras :D
I know that I post out of topic, but what is this Mardi Gras thing. I heard so many times about Mardi Gras. Is it a day of celebration in New Orleans?

MrViggy
February 8th, 2005, 04:17 PM
I know that I post out of topic, but what is this Mardi Gras thing. I heard so many times about Mardi Gras. Is it a day of celebration in New Orleans?
Not to take this too off topic. Funny you should ask that. According to my calander (it's a "stupid fact a day" type):

Mardi Gras means "Fat Tuesday", signifying the last day before the Lenten fasting season.

So, it's a day to stuff yourself, before you have to fast! ;)

Viggy

Andreas Masur
February 8th, 2005, 04:30 PM
Mardi Gras is a traditional holiday celebrated in many of the southern states of the USA. The most famous celebration takes place in New Orleans, Louisiana. The people there enjoy this celebration by going to parades where they catch "beads, doubloons, cups, and trinkets" that are all thrown from floats.

They have masquerade balls and dress up in costumes for these events. King Cakes are eaten during this holiday. Mardi Gras is known as the "biggest free show on earth."


The History of Mardi Gras (http://www.holidays.net/mardigras/story.htm)...