|
-
February 8th, 2005, 09:29 AM
#1
singleton class
what is singleton class?what are its advantages?elaborate..
-
February 8th, 2005, 09:40 AM
#2
Re: singleton class
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
TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
2008, 2009,2010
In theory, there is no difference between theory and practice; in practice there is.
* Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions 
* How NOT to post a question here
* Of course you read this carefully before you posted
* Need homework help? Read this first
-
February 8th, 2005, 09:46 AM
#3
Re: singleton class
How can I implement singleton class?Explain with sample program.
-
February 8th, 2005, 10:01 AM
#4
Re: singleton class
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...
TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
2008, 2009,2010
In theory, there is no difference between theory and practice; in practice there is.
* Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions 
* How NOT to post a question here
* Of course you read this carefully before you posted
* Need homework help? Read this first
-
February 8th, 2005, 10:09 AM
#5
-
February 8th, 2005, 10:13 AM
#6
-
February 8th, 2005, 10:42 AM
#7
Re: singleton class
Did no-one else think that they sounded like homework questions?
A "please" would have been nice...
Correct is better than fast. Simple is better than complex. Clear is better than cute. Safe is better than insecure.
-- Sutter and Alexandrescu, C++ Coding Standards
Programs must be written for people to read, and only incidentally for machines to execute.
-- Harold Abelson and Gerald Jay Sussman
The cheapest, fastest and most reliable components of a computer system are those that aren't there.
-- Gordon Bell
-
February 8th, 2005, 11:00 AM
#8
Re: singleton class
 Originally Posted by Graham
Did no-one else think that they sounded like homework questions?
A "please" would have been nice...
The posters of these days...
-
February 8th, 2005, 11:58 AM
#9
Re: singleton class
 Originally Posted by Graham
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...
-
February 8th, 2005, 12:00 PM
#10
Re: singleton class
Andreas (and Ejaz) you are a kinder man than I....
TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
2008, 2009,2010
In theory, there is no difference between theory and practice; in practice there is.
* Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions 
* How NOT to post a question here
* Of course you read this carefully before you posted
* Need homework help? Read this first
-
February 8th, 2005, 12:16 PM
#11
Re: singleton class
 Originally Posted by TheCPUWizard
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...
-
February 8th, 2005, 01:11 PM
#12
Re: singleton class
Especially on THIS Tuesday - Happy Mardi Gras
TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
2008, 2009,2010
In theory, there is no difference between theory and practice; in practice there is.
* Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions 
* How NOT to post a question here
* Of course you read this carefully before you posted
* Need homework help? Read this first
-
February 8th, 2005, 05:01 PM
#13
Re: singleton class
 Originally Posted by TheCPUWizard
Especially on THIS Tuesday - Happy Mardi Gras 
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?
-
February 8th, 2005, 05:17 PM
#14
Re: singleton class
 Originally Posted by cilu
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
-
February 8th, 2005, 05:30 PM
#15
Re: singleton class
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...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|