20.2 Name Scopes (cont.)
Scopes we have seen (cont.):
- Class Scope
- private members of a class only have meaning to other members
(and friends) of that class
- Global Scope
- Identifiers declared outside functions and classes
- From declaration until the end of file
- Visible in other files by declaring it as extern
- File Scope
- A static global - "local" to file
prev
|top
|next