An overridden method is a method that is implemented:
- in your class, and
- in one of your base classes too
For example:
class MediaType implements Value<string> {
// ... other properties left out
public valueOf(): string {
return this.value;
}
}
class ContentType extends MediaType {
// `valueOf()` is an overridden method
//
// it was originally implemented
// in our base class `MediaType`
public valueOf(): string {
return this.parse().contentType;
}
}