lundi 21 mai 2018

Helper classes with only public static methods

I wish to create a helper class with public static methods only. I declare a class instead of namespace, because I will befriend this class with others so that it can operate on their private members as well.

Is this considered a bad OOP practice? Is there an established better way to achieve this goal, or a pattern-like name given to cases like this, that I can do further research on the internet?

Thanks.

Aucun commentaire:

Enregistrer un commentaire