A class is a group of objects having common properties. Classes are entities that are used to create reusable program components.TypeScript supports object-oriented programming features.
The properties of a class are - Fields, Methods, Constructors, Nested class and Interface.
Syntax:
class <class name> {
field;
method;
}
A class creates objects by using the new keyword followed by the class name. The new keyword allocates memory for object creation at runtime.
let object_name = new class_name (parameter)