1 Star 0 Fork 0

LonelyPale / wpcharts-server

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
test1.js 465 Bytes
一键复制 编辑 原始数据 按行查看 历史
LonelyPale 提交于 2020-01-07 18:20 . init v1.0.0
//# test extends
class People {
constructor(name, age) {
this.name = name;
this.age = age;
}
print() {
console.log(this.name, this.age);
}
}
class Father extends People {
constructor(name, age) {
super(name, age);
}
}
class Son extends Father {
constructor(name, age) {
super(name, age);
}
}
function main() {
let son = new Son("test", 123);
son.print();
}
main();
1
https://gitee.com/lonelypalegit/wpcharts-server.git
git@gitee.com:lonelypalegit/wpcharts-server.git
lonelypalegit
wpcharts-server
wpcharts-server
master

搜索帮助