Say I had
andCode:using namespace algo {
int func() { return 5; }
};
Is there any difference? The only one I can find is that you can declare all the members of a class friends where you can't with namespaces.Code:class algo {
public:
static int func() { return 5; }
};