Constants defined within a class or module may be accessed unadorned anywhere within the class or module. Outside the class or module, they may be accessed using the scope operator, “::” prefixed by an expression that returns the appropriate class or module object.
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.