class delegation

Class delegation builds upon the generic delegation idea wherein a responsibility is being passed to another entity. Delegation pattern is one of the design patterns in object-oriented paradigm and it uses composition to achieve it. The basic idea of class delegation is that you can implement an interface by owning an object that implements the same interface and delegates the responsibility to that object.