Download - 10 namespace
Transcript
![Page 2: 10 namespace](https://reader038.vdocument.in/reader038/viewer/2022100523/554bb195b4c905b8618b5a7b/html5/thumbnails/2.jpg)
Namespaces
![Page 3: 10 namespace](https://reader038.vdocument.in/reader038/viewer/2022100523/554bb195b4c905b8618b5a7b/html5/thumbnails/3.jpg)
Namespaces
used to group classes logically and prevent name clashes
between classes with identical names.
https://gist.github.com/2403402
![Page 4: 10 namespace](https://reader038.vdocument.in/reader038/viewer/2022100523/554bb195b4c905b8618b5a7b/html5/thumbnails/4.jpg)
System-defined Namespaces
![Page 5: 10 namespace](https://reader038.vdocument.in/reader038/viewer/2022100523/554bb195b4c905b8618b5a7b/html5/thumbnails/5.jpg)
Using namespaces
![Page 6: 10 namespace](https://reader038.vdocument.in/reader038/viewer/2022100523/554bb195b4c905b8618b5a7b/html5/thumbnails/6.jpg)
Custom namespaces (User-defined namespaces)
if a namespace is not declared, a default namespace is created in
every file by the compiler
![Page 7: 10 namespace](https://reader038.vdocument.in/reader038/viewer/2022100523/554bb195b4c905b8618b5a7b/html5/thumbnails/7.jpg)
Access Modifiers for Namespaces
always public
cannot apply access modifiers
![Page 9: 10 namespace](https://reader038.vdocument.in/reader038/viewer/2022100523/554bb195b4c905b8618b5a7b/html5/thumbnails/9.jpg)
Qualified Naming
![Page 10: 10 namespace](https://reader038.vdocument.in/reader038/viewer/2022100523/554bb195b4c905b8618b5a7b/html5/thumbnails/10.jpg)
Nested Namespace
![Page 11: 10 namespace](https://reader038.vdocument.in/reader038/viewer/2022100523/554bb195b4c905b8618b5a7b/html5/thumbnails/11.jpg)
Namespace Aliases
https://gist.github.com/2404626