Dziedziczenie klas typucript
class Employee extends Person {
constructor(
firstName: string,
lastName: string,
private jobTitle: string) {
// call the constructor of the Person class:
super(firstName, lastName);
}
}
Code language: TypeScript (typescript)
Bhela