It's a point of not writing code that makes no sense. If you don't need them and they don't add anything, don't put there there.
Personally I find
much easier to read thanCode:
void set_num(int numpub)
{
num = numpub;
}
Readability should be a very important part of your coding style.Code:void set_num(int numpub)
{num=numpub;};

