- 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.
推薦閱讀
- 密碼學(xué)原理與Java實(shí)現(xiàn)
- Visual Basic編程:從基礎(chǔ)到實(shí)踐(第2版)
- 物聯(lián)網(wǎng)系統(tǒng)開發(fā):從0到1構(gòu)建IoT平臺(tái)(第2版)
- 自制編程語(yǔ)言
- Jupyter數(shù)據(jù)科學(xué)實(shí)戰(zhàn)
- Hands-On Kubernetes on Windows
- 從零開始:UI圖標(biāo)設(shè)計(jì)與制作(第3版)
- Go語(yǔ)言開發(fā)實(shí)戰(zhàn)(慕課版)
- 監(jiān)控的藝術(shù):云原生時(shí)代的監(jiān)控框架
- Getting Started with React VR
- Appcelerator Titanium:Patterns and Best Practices
- 軟件測(cè)試技術(shù)
- Laravel Design Patterns and Best Practices
- INSTANT Lift Web Applications How-to
- 鋁合金陽(yáng)極氧化與表面處理技術(shù)(第三版)