Skip to content
Advertisement

Tag: delegates

Automatically delegating all methods of a java class

Say I have a class with many of public methods: Now I would like to create a wrapper class which would delegate all the methods to wrapped instance (delegate): Now if MyClass has a lot of methods I would need to override each of them which is more or less the same code which just “delegates”. I was wondering if

Advertisement