jz wrote:If the particular class's functionality is being used in multiple classes then you might use inheritance as well.
I am having one class that should be shared between multiple modules. Therefore I defined it with singleton pattern. Now I am wandering is this the optimal solution.
Is it better to remove this singleton pattern and share this object via method parameter. I like the singleton pattern more.