Monkey patching is a process of forcing a function into a function of a particular class in real run time. It is the process of applying the patch in a dynamic way to bring a change in the class.
It can be done by creating a function which is new and not a part of the class but we can force the function into any class with the help of monkey patch.
It is used as a quick fix to alter the issues in the code without creating any new class at run time. Monkey patching is done by creating patches to add dynamic attributes in a class at run time.