- 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.
推薦閱讀
- SPSS數據挖掘與案例分析應用實踐
- Java FX應用開發教程
- Python機器學習實戰
- jQuery Mobile移動應用開發實戰(第3版)
- Visual Basic程序設計教程
- 持續輕量級Java EE開發:編寫可測試的代碼
- Scratch趣味編程:陪孩子像搭積木一樣學編程
- Processing創意編程指南
- Python 3 數據分析與機器學習實戰
- SQL Server 2008中文版項目教程(第3版)
- 零基礎C#學習筆記
- 軟件工程與UML案例解析(第三版)
- SOA Patterns with BizTalk Server 2013 and Microsoft Azure(Second Edition)
- Java EE 程序設計
- Hands-On Data Visualization with Bokeh