JavaScript基础知识之Class的继承

2021-08-25  本文已影响0人  9月的甜橙子
class Point {}
class ColorPoint extends Point {
constructor(x, y, color) {
super(x, y);
this.color=color;
}
}
上一篇 下一篇

猜你喜欢

热点阅读