Cannot access static:: when no class scope is active

Cannot access static:: when no class scope is active error solutions. I have suggested earlier, but it should be.

Thanks.