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

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.

主站蜘蛛池模板: 汉源县| 霍邱县| 达日县| 彭泽县| 讷河市| 永靖县| 宁安市| 湘乡市| 丹江口市| 吉木萨尔县| 东明县| 朔州市| 徐水县| 武安市| 密云县| 洛宁县| 广德县| 砚山县| 乳源| 九台市| 卓资县| 南阳市| 依安县| 曲麻莱县| 镇坪县| 肇庆市| 五莲县| 盐城市| 涿州市| 新平| 新巴尔虎左旗| 长春市| 綦江县| 阜康市| 府谷县| 大同县| 荆门市| 辛集市| 嘉鱼县| 旬阳县| 通道|