📅  最后修改于: 2022-03-11 15:04:19.053000             🧑  作者: Mango
// Day 5: Inheritance hackerrank 10 days of javascript solution
class Square extends Rectangle{
constructor(side){
super(side);
this.w = side;
this.h = side;
}
}