Creating OOP Class Objects in TypeScript
Let us have the following class User:
typescriptclass User {
}
Let's create an object of this class:
typescriptlet user = new User;
The type of the variable containing the class object must be the name of this class. Let's refine our code:
typescriptlet user: User = new User;
Задание 1
Create two objects of class Employee.