answersLogoWhite

0

Is namespace supported by oop

User Avatar

Anonymous

9y ago
Updated: 8/18/2019

No. A namespace is a language feature not an OOP feature. Java, for instance, doesn't use namespaces, it uses packages. Although similar in some ways, packages impose additional restrictions. E.g., packages have an impact on accessibility whereas namespaces and accessibility are orthogonal. Moreover, the directory structure must match the package structure (each file must be associated with one and only one package), whereas you can have multiple namespaces in the same file.

User Avatar

Wiki User

9y ago

What else can I help you with?