Interface in Typescript
- TypeScript supports interfaces.
- We define an interface with a method contract
- The classes will implement the interface accordingly
- A class can implement multiple interfaces and type typescript.
- TypeScript can also use interfaces to support contracts with properties.
Define an Interface

All classes that implement the interface must implement the method of that interface
Implement Interface

Using Interface and Drived Class in Application
