提交 5dad5e9c 编写于 作者: Q qiang

docs: interface

上级 5253bd1e
......@@ -323,7 +323,7 @@ class FilledRectangle extends Rectangle {
### 接口(interface)@interface
接口提供了一种约定,用于确保对象的属性和方法遵循特定的模式。接口可以被类所采用,以提供具体的实现。接口可以包含抽象的声明,但不能包含具体的实现。
接口提供了一种约定,用于确保对象的属性和方法遵循特定的模式。接口只能包含抽象的声明,不能包含具体的实现。接口本身不能被实例化,它可以被类所采用,以提供具体的实现。
接口使用关键字 `interface` 声明。
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册