Click here to Skip to main content
15,891,704 members
Articles / Programming Languages / Typescript

100 Days of TypeScript (Day 6)

Rate me:
Please Sign up or sign in to vote.
4.55/5 (3 votes)
7 Nov 2021CPOL9 min read 3.1K   6  
How to implement interfaces in TypeScript, inherit from classes and a whole lot more.
This is Part 6 of a 100 part series introducing you to TypeScript if you’ve not used it before; which will give you a brush up on things you already know if you’ve used it, and maybe introduce you to some new things that you might not have come across before. In this post, we will look at what inheritance is, and how we can apply it with classes. We will also discuss how to make classes abstract and use the protected keyword, and introduce the ability to cast one type to another.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
CEO
United Kingdom United Kingdom
A developer for over 30 years, I've been lucky enough to write articles and applications for Code Project as well as the Intel Ultimate Coder - Going Perceptual challenge. I live in the North East of England with 2 wonderful daughters and a wonderful wife.

I am not the Stig, but I do wish I had Lotus Tuned Suspension.

Comments and Discussions