O'Reilly logo

Learning Angular for .NET Developers by Rajesh Gunasundaram

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Extending interfaces

Interfaces can be extended; extending an interface makes it share the properties of another interface, as follows:

interface Manager {     hasPower: boolean; }interface Employee extends Manager {     name: string; } let employee = <Employee>{}; employee.name = "Rajesh Gunasundaram"; employee.hasPower = true; 

Here, the Employee interface extends the Manager interface and shares its hasPower with the Employee interface.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required