abstract interface 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;
}