📄 readme
字号:
Abstract interfaces cannot exist on their own. They can be implemented eitheras a valuetype or as an interface. Methods can then operate on an abstractinterface without knowing if the parameter is actually a (local) valuetypeor a (potentially remote) object.This example shows a "Describable" abstract interface, which has the singlemethod "get_description". This method is then implemented in both theconcrete interface "Account" and the valuetype "Currency" -- both aredescribable and can produce a description of themselves as a string.The "Example" interface can therefore display both Accounts and Currencies,since they both implement the abstract base.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -