Decorators can be use any part of codes but mostly functions. It can help us for debugging even on oo programming.