In C++ using void
in a function with no parameter, for example:
class WinMessage
{
public:
BOOL Translate(void);
};
is redunda
Just as a side note. Another reason for not including the void is that software, like starUML, that can read code and generate class diagrams, read the void as a parameter. Even though this may be a flaw in the UML generating software, it is still annoying to have to go back and remove the "void"s if you want to have clean diagrams