Register now or log in to join your professional community.
you can use proxy pattern to add functions you want to add to any instance, spicialy if it is dynamic
If you want to combine the functionality of two classes into one, we can use object composition.