Design Patterns?
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Gajanan_Choudhari
Posted On:   Thursday, April 8, 2004 10:10 PM

What is Singleton? What are other three design patterns?


Can any one explian with example code?
Thanks!
Regard,
Gajanan C.

Re: Design Patterns?

Posted By:   Sal_Maz  
Posted On:   Monday, April 26, 2004 06:13 AM

The singletone is an class that is can an unique instance.
For obtained an singletone :
1) constructore must is private and static.
2) in the costructor there is the istrunction: instance = new ClassName(); // create unique istance.
3)there is an method for returned the instance: es: getInstance();
4).....
5).....
there are very example on the web. It is very like for syncronizer problem because with an unique istance is more sample for manage conccurency.
excuse me for bud english.

Re: Design Patterns?

Posted By:   Lance_Walton  
Posted On:   Friday, April 9, 2004 05:28 AM

Hi.

Have a look here. The Quick Pick links are what you need.

Regards,

Lance

About | Sitemap | Contact