Interface In TypeScript Part-11

In our previous post we have overview about Static Functions & Properties in Type Script.Today we will learn about Interface TypeScript.

Interface:

Interface is Object oriented syntax which is used  manage application beauty. That means that Class and Method is ready. We just call and we will implement this method by self . Method’s name will be same in hole application.

Example:

Interface class

Here there are no methods implementation. We can see that just method name and signature.

Interface Implemented

Note:

  • When we implement interface then must be used implements keyword.
  • All Methods will be implement.

Happy Coding 🙂

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *