abstract interface in typescript

Solutions on MaxInterview for abstract interface in typescript by the best coders in the world

showing results for - "abstract interface in typescript"
Avia
30 Jun 2019
1abstract class BaseEmployee {
2    firstName: string;
3    lastName: string;
4 
5    constructor(firstName: string, lastName: string) {
6        this.firstName = firstName;
7        this.lastName = lastName;
8    }
9 
10    abstract doWork(): void;
11}