Posted by Sanders Kaufman on 07/24/07 20:39
Sanders Kaufman wrote:
> Andy Hassall wrote:
>
>> Perhaps you want a singleton class? This often fits well for databases
>> resources.
>
> Singleton's aren't really OOP.
> They're great for *simulating* OOP, but it's just a cheap knock-off.
That was kinda lame for me to say.
Actually, I have a singleton class that is my db class.
It's aggragated as a property of my abstract base class.
The abstract base class is then used to extend my actual
foundation/framework classes.
[Back to original message]
|