Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 117f2a9

Browse files
committed
修正类与接口章节
1 parent 29d8fa3 commit 117f2a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

advanced/class-and-interfaces.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ let point3d: Point3d = {x: 1, y: 2, z: 3};
187187

188188
当我们声明 `interface Point3d extends Point` 时,`Point3d` 继承的实际上是类 `Point` 的实例的类型。
189189

190-
换句话说,我们实际上是定义了一个接口 `Point3d` 继承另一个接口 `PointInstanceType`
190+
换句话说,可以理解为定义了一个接口 `Point3d` 继承另一个接口 `PointInstanceType`
191191

192192
所以「接口继承类」和「接口继承接口」没有什么本质的区别。
193193

0 commit comments

Comments
 (0)