書名: Distributed Computing in Java 9作者名: Raja Malleswara Rao Pattamsetti本章字數(shù): 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.
推薦閱讀
- OpenDaylight Cookbook
- ASP.NET MVC4框架揭秘
- 微服務設計原理與架構
- 數(shù)據(jù)庫系統(tǒng)原理及MySQL應用教程
- Django Design Patterns and Best Practices
- SSM輕量級框架應用實戰(zhàn)
- 算法訓練營:提高篇(全彩版)
- 學習正則表達式
- Learning SciPy for Numerical and Scientific Computing(Second Edition)
- 執(zhí)劍而舞:用代碼創(chuàng)作藝術
- Learning jQuery(Fourth Edition)
- Hands-On JavaScript for Python Developers
- 寫給程序員的Python教程
- RubyMotion iOS Develoment Essentials
- Web程序設計:ASP.NET(第2版)