I have some class it is a singleton we have this class in already several applications and it is used there as a singleton.
Now i am writing some new application and i need several instances of that class , what is a best practice to have sevaral instances of it ?
By deriving from it and making the private constructur to be public, I work with c# ?
Or there can be someother idea here ?
Thanks
Simple: don't make it a singleton. The word 'single' is there for a reason.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With