In JavaScript ES2015, when extending a class, do we need to explicitly make a new constructor or can we just use the parent class's constructor?

Viewed 149

I understand based on this stackoverflow post that we need to call super if you're wanting to use this in the subclass and add additional code for it. However, would we need to call make a new constructor and use super still if there's nothing else done?

class SpecialCart extends Cart {

  // Is this constructor really necessary?
  constructor(name){
    super(name); 
  }

  // other methods go here....

}
2 Answers
Related