Master Classes In TypeScript

preview_player
Показать описание
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.

00:00 Intro
01:09 Prototypical Inheritance
02:22 Creating objects in JS
04:04 What is a class?
05:33 The class keyword
07:43 Transpiling classes to JS
09:20 Optional properties
10:18 Inheritance
15:22 Private and Protected members
17:25 Native Private Fields
19:10 Readonly properties
20:19 Accessors
26:28 Static properties
29:16 Abstract classes
32:44 Where to find the code
33:10 The Structural Type System of TypeScript
35:56 Outro

Check out my ✨TypeScript course:

Links I mention in the video
- Learn about Object prototypes:
- Find all the code examples in my blog:

This video belongs to my series Too Long To Read TypeScript. Every episode covers in detail a core concept of the language.

You can support this channel by clicking SUBSCRIBE :)
Рекомендации по теме
Комментарии
Автор

That is the best intro I've seen in a long time. Loving your videos man. You making me fall in love with Typescripts. Please keep sharing. Love your contents.

ravenMK_
Автор

Bravooo Nicos! exceptional work! love the bowtie

liak
Автор

Can you please make some videos on, function overloading inside class and composition.

afrid
Автор

Way more challenging is how to pronounce your second name.. Is it Greek?? By the by like the tutorial..

ffred