Namespaces can be set at the file level.
COBOL | Java |
---|---|
*> At the file level $set ilnamespace "MicroFocus.COBOL.Examples" *> The directive can also be set at project *> level to apply the name space to all classes in the project. *> Alternatively, at the class level: class-id MicroFocus.COBOL.Examples.MyClass. end class. *> namespace import at file level: $set ilusing(MicroFocus.COBOL.Examples) *> The directive can also be set at project *> level to apply the import to the entire project. |
package MicroFocus.COBOL.Examples; public class namespaces { } |
Portions of these examples were produced by Dr. Frank McCown, Harding University Computer Science Dept, and are licensed under a Creative Commons License.