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

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.

主站蜘蛛池模板: 恭城| 安岳县| 平泉县| 昭通市| 大方县| 婺源县| 富锦市| 沙田区| 堆龙德庆县| 左权县| 巴塘县| 松溪县| 简阳市| 长治市| 柘城县| 阿坝| 定西市| 德惠市| 桂阳县| 吉木萨尔县| 扶绥县| 盘山县| 仙桃市| 平凉市| 通辽市| 邵阳市| 双柏县| 图片| 葫芦岛市| 莱西市| 临清市| 馆陶县| 宁海县| 崇州市| 岑巩县| 鲁甸县| 嘉鱼县| 东明县| 翁牛特旗| 大丰市| 花莲县|