20,741
edits
m (→Methods) |
m (→Namespaces) |
||
| Line 4: | Line 4: | ||
A namespace is a "context", i.e. an environment where a certain symbol (variable) is valid. | A namespace is a "context", i.e. an environment where a certain symbol (variable) is valid. | ||
Imagine, three houses with rooms | Imagine, three '''identical''' houses with rooms: | ||
Even otherwise identical rooms are kept in separate "environments", i.e. you have to refer to a certain "environment" (namespace) to uniquely identify a certain room. | Even otherwise identical rooms are kept in separate "environments", i.e. you have to refer to a certain "environment" (namespace) to uniquely identify a certain room, even though the design/architecture of each house is 100% identical, because they are all based on the sampe template (plan). | ||
For example, imagine three bath rooms in these three houses: house1, house2, house3. | For example, imagine three bath rooms in these three houses: house1, house2, house3. | ||