Can you have an array inside an abstract class in TypeScript and add items to it?
abstract class Department {
private data: string[] = [];
addData(item: string) {
this.data.push(item);
}
constructor(public name: string) {}
printName(): void {
console.log("Department name: " + this.name);
}
abstract printMeeting(): void;
}