Classes
TLTR; Typescript \ The Basics

Classes

A complete guide for classes in TypeScript. Learn how to create classes and how to guard them with types. I present all the possible ways to protect your properties and methods from direct access. Discover what inheritance is about and how to implement it in TypeScript. Get familiar with the keywords private, protected, private, readonly, and static. Use getters and setters and create abstract classes. We will also talk about the structural type system of TypeScript, which sets it apart from any other language.

✍️ Read the article.