Decorators are used to modify classes and its members (methods, properties).
The question may be, why do we need decorators to change those things? Why not directly change in the declarations? Directly changing is not scalable. If you need the same changes in 100 classes, you have to write it…