October 2017
Intermediate to advanced
280 pages
6h 50m
English
In case the behavior of the class is a union of the properties defined in a couple of interfaces, it may implement all of them:
class Person implements Human, Accountable {
age: number;
name: string;
accountNumber: string;
getIncome(): number {
// ...
}
}
In this case, we need to provide the implementation of all the methods and properties declared inside the interfaces our class implements, otherwise, the compiler will throw a compile-time error.
Read now
Unlock full access