官术网_书友最值得收藏!

Namespaces

Namespaces are a way to introduce additional levels of scope into an application. As we saw in the earlier section on classes, these are a compiler-level concept.

The main use lies in modularizing code, dividing it into logical segments in cases where classes are not the most obvious solution, or where you want to explicitly sort classes into a particular category using a namespace. This way, you can also avoid name and type collisions between similarly named classes, types, and enumerations.

主站蜘蛛池模板: 策勒县| 自贡市| 马龙县| 乐都县| 九龙城区| 叙永县| 襄城县| 边坝县| 乐至县| 磐石市| 岑溪市| 额尔古纳市| 山阴县| 封丘县| 咸阳市| 林口县| 南江县| 元谋县| 乐东| 东台市| 阳西县| 海阳市| 南川市| 准格尔旗| 广丰县| 桂林市| 贡觉县| 北海市| 南宁市| 钟祥市| 汕头市| 新田县| 蒙山县| 庐江县| 嵊泗县| 湾仔区| 高安市| 天气| 咸阳市| 兰考县| 长阳|