I just noticed the following class design in a module.
class testClass
{
public:
static long utilFunc1() ;
static long utilFunc2() ;
static long utilFunc3() ;
private:
testClass(){};
~testClass(){};
static someClass1* someObj1Ptr ;
static someClass2* someObj2Ptr ;
static someClass3* someObj3Ptr ;
};
The class design looks ugly for me. The implementation also gives the
feeling that, this class is just a placeholder for the utility
functions.
In that case, could I suggest to use namespace instead of a class?
The only reason why I hesitate to suggest that is, the class also
contains some
members. Can still the namespace be the correct choice here?
Kindly clarify!