- Distributed Computing in Java 9
- Raja Malleswara Rao Pattamsetti
- 106字
- 2021-07-02 21:02:37
Interfaces
The purpose of IDL is to define interfaces and their operations. To avoid name clashes when using several IDL declarations together, the module is used as a naming scope. Modules can contain nested modules. Interfaces open a new naming scope containing data type declarations, constants, attributes, and operations:
//EmployeeHiring.idl
Module EmployeeHiring {
interface Employee();
}
The process of setting up a reference to one module from another can be defined with outer::inner as ::EmployeeHiring::Employee:
Module outer{
Module inner {
interface inside{};
};
interface outside {
inner::inside get_inside();
};
};
The get_inside() operation is for returning the object reference for the ::outer::inner::inside interface.
推薦閱讀
- iOS Game Programming Cookbook
- Node.js 10實戰
- Building a Game with Unity and Blender
- Instant QlikView 11 Application Development
- Visual Basic程序設計實踐教程
- Learning YARN
- Julia 1.0 Programming Complete Reference Guide
- JavaScript+jQuery網頁特效設計任務驅動教程
- Hack與HHVM權威指南
- 寫給青少年的人工智能(Python版·微課視頻版)
- Java程序設計
- Three.js Essentials
- SOA Patterns with BizTalk Server 2013 and Microsoft Azure(Second Edition)
- Spring MVC Cookbook
- HTML 5與CSS 3權威指南(第3版·下冊)