Class in TypeScript #13 | TypeScript Tutorial | #VCreationsTech

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

Today our topic is on Class in TypeScript.

TypeScript is object oriented JavaScript so it supports class concept.
Class encapsulates data for object.
Class is a built-in feature present in TypeScript.
When we are declaring a class we need to use the class keyword.
Class consists of fields/variables, constructors, and functions.
To create an instance of the class, we need to use the new keyword followed by the class name.

Wish You Success,
#VCreationsTech.
Рекомендации по теме