Kelas JavaScript meluas
class Parent {
constructor(name){
this.name = name;
}
}
class Child extends Parent {
constructor(name, school){
super(name); // Super must be called before setting child options
this.school = school;
}
}
I_Like_Cats__