TypeScript Basics 12 - TypeScript classes

preview_player
Показать описание

Learn how to declare and use classes in TypeScript. We'll declare a TypeScript class, create an instance of it and use it in this video.

Course: TypeScript Basics
Learn about the basics of TypeScript. Understand how types work, how to use arrays and tuples, how to declare classes and interfaces. Understand concepts of type erasure, duck typing, enums, generics and modules. Create a development workflow and configure the TypeScript compiler to your needs. And watch as I build an end-to-end TypeScript application from scratch.
Рекомендации по теме
Комментарии
Автор

Compared to Java, class should be the same name as the filename. all codes should be inside the class bracket and accessing the instance of the class created should be inside a method. Entry point is on a main method inside a class if we want to run it. Somehow familiar but totally different rules/implementation. Thank you Kaushik for the clear explanations. :)

monsterhuntergo
Автор

It's good to see you back koushik

PONSONT
Автор

That's a fantastic video, I follow all of your great videos since you are one of the best out there in terms of explaining things. Oh, I also wanted to add a note for this specific video use of 'var' keyword seems to be not much recommended in TS. which could be a good thing to note in future videos :).

lucylilgal
Автор

Hi I like tutorials they are short and sweet as expected.

pravinppatil
Автор

it's strange that compiled class has no member variables

hyperborean
Автор

Please use the dark mode. This is very painful for eyes.

subham-raj