The delegation is a commonly used pattern in object-oriented programming. It is a situation where an object, instead of performing a tasks itself, delegates that task to another, helper object. The helper object is called the delegate. Let’s say there is a main class that wants to delegate the calculation of a sum to another… →