oop - Clarification of the term "Namespace" -


my understanding of term "namespace" of class; container of methods , variables. although seems doubling on consider definition of class.

can confirm or clarify belief?

a namespace used have different programming rules in same program module. let's want define function 'string_addition' mean 'string1' + 'string2' = 'string1string2', later in same program want define 'string_addition' mean 'string1' + 'string2' = 'string3'. can use namespaces, in same file can call on different namespaces , both kinds of rules.

namespace h:stringadd(string1, string2) = string1string2  namespace f:stringadd(string1, string2) = string3 

Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -