Best design solution amongst the below for a Utility Class (say logger class):
- static class with static methods.
- non-static class with static methods with a private constructor (throwing method not implemented)
- non-static class with static methods having a singleton
I saw this answer but found it oversimplified & superficial.
Please elaborate. Language used :- C# (just for reference)
Aucun commentaire:
Enregistrer un commentaire