📌  相关文章
📜  Day 12:继承hackerrank解决方案javascript代码示例

📅  最后修改于: 2022-03-11 15:04:19.053000             🧑  作者: Mango

代码示例2
// Day 5: Inheritance hackerrank 10 days of javascript solution
class Square extends Rectangle{
    constructor(side){
        super(side);
        this.w = side;
        this.h = side;
    }
}