when to use interface instead of abstract class typescript code example
Example: abstract interface in typescript
abstract class BaseEmployee {
firstName: string;
lastName: string;
constructor(firstName: string, lastName: string) {
this.firstName = firstName;
this.lastName = lastName;
}
abstract doWork(): void;
}