THE SINGLETON PATTERN ?

Oct 07, 2004 4 Replies

Hello everyone, I have been researching the Singleton Pattern. Since the singleton pattern uses a private constructor which in turn reduces extendability, if you make the Singleton Polymorphic what sort of problems/issues should be considered?



Also, I see that a singleton needs to be set up with certain data such as file name, database URL etc. What issues are involved in this, and how would you do this?



If someone knows about the Singleton pattern please reply. Thanks



Alicia


Alicia, I'm pretty sure I wouldn't use any electrical engineering techniques for this.

Sylvia.

: Alicia, I'm pretty sure I wouldn't use any electrical engineering : techniques for this.

Most computer work with electricity B-)

Yes, but in all my many years of experience writing computer software, I have never once had to consider the electrical aspects.

Well, except that day I dismantled the power supply....but we won't go into that.

Sylvia.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required