Call parent methods with super.methodName() to extend rather than replace behavior.
class Animal {
describe() {
return `Name: ${this.name}`;
}
}
class Dog extends Animal {
describe() {
return super.describe() + `, Breed: ${this.breed}`;
}
}
This lets you add to parent behavior instead of replacing it entirely.