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

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

objective c - Newbie question -multiple parameters -