We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0666054 + 3a64f73 commit 8d73b03Copy full SHA for 8d73b03
docs/class.md
@@ -471,7 +471,7 @@ interface Swimmable {
471
// ...
472
}
473
474
-interface SuperCar extends MotoVehicle,Flyable, Swimmable {
+interface SuperCar extends MotorVehicle,Flyable, Swimmable {
475
476
477
@@ -570,7 +570,7 @@ const c1:Car = new Car();
570
const c2:MotorVehicle = new Car();
571
```
572
573
-上面示例中,变量的类型可以写成类`Car`,也可以写成接口`MotorVehicle`。它们的区别是,如果类`Car`有接口`MotoVehicle`没有的属性和方法,那么只有变量`c1`可以调用这些属性和方法。
+上面示例中,变量的类型可以写成类`Car`,也可以写成接口`MotorVehicle`。它们的区别是,如果类`Car`有接口`MotorVehicle`没有的属性和方法,那么只有变量`c1`可以调用这些属性和方法。
574
575
作为类型使用时,类名只能表示实例的类型,不能表示类的自身类型。
576
0 commit comments