10 namespace
11
Click here to load reader
-
Upload
tuan-ngo -
Category
Technology
-
view
493 -
download
0
Transcript of 10 namespace
Namespaces
Namespaces
used to group classes logically and prevent name clashes
between classes with identical names.
https://gist.github.com/2403402
System-defined Namespaces
Using namespaces
Custom namespaces (User-defined namespaces)
if a namespace is not declared, a default namespace is created in
every file by the compiler
Access Modifiers for Namespaces
always public
cannot apply access modifiers
Qualified Naming
Nested Namespace
Namespace Aliases
https://gist.github.com/2404626