Interface and Implementation section available scope.

来源:互联网 发布:金吉数据黑匣子 编辑:程序博客网 时间:2024/05/23 02:06

If you define a variable (identifier) inside the interface section the variable will be "visible" to all units using this unit. If you define an identifier inside the implementation section, the identifier is hidden to the outer world.

When designing the overall structure of your application it is essential to have an understanding of the scope (visibility) of identifiers (routines, variables, types) defined inside the unit:

    * Everything defined in the interface section will be available to all other units using this unit
    * Everything defined in the implementation section is available only within the unit

原创粉丝点击