View Single Post
Old Dec 29th, 2006, 12:40 PM   #9
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
A namespace defines a scope. All its members are public; forget access specifiers. Unlike a class or a struct, it is open. That is, you can extend it later with more definitions. Also unlike a class or struct, the closing brace does not have a following semicolon.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote