Constructor in TypeScript
A constructor is a special function of the class that is automatically invoked when we create an instance of the class. We use it to create & initialize the instance of the class. We can also add properties to the class using the constructor parameter properties.