OOP Classes in TypeScript
As you already know, classes are the main elements of OOP. In TypeScript, a class is defined using the class keyword, followed by its name, capitalized. Let's declare a User class as an example:
class User {
}
Declare a class Employee.