Can the implementation of a function be written inside an abstract class?
I am planning to create an abstract class for my components to extend in order to share some behaviors. Is it acceptable to include something like this (as shown in the simple example below):
export abstract class SharedBehaviour {
public helloWorld() {
console.log("hello world");
}
}
export class MyComponent extends SharedBehaviour {
public someMethod() {
this.helloWorld();
}
}