- 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.
推薦閱讀
- Objective-C Memory Management Essentials
- Functional Kotlin
- Java Web開發詳解
- Python編程:從入門到實踐(第3版)
- Apache Camel Developer's Cookbook
- Visual Basic程序設計(第三版)
- 監控的藝術:云原生時代的監控框架
- Julia High Performance(Second Edition)
- 物聯網系統架構設計與邊緣計算(原書第2版)
- Learning Bootstrap 4(Second Edition)
- Deep Learning for Natural Language Processing
- Keil Cx51 V7.0單片機高級語言編程與μVision2應用實踐
- Wearable:Tech Projects with the Raspberry Pi Zero
- Clojure Data Structures and Algorithms Cookbook
- Learning Zimbra Server Essentials