A server class you are using needs several additional methods, but you can’t modify the class.
Create a new class that contains these extra methods. Make this extension class a subclass or a wrapper of the original.
转载于:https://www.cnblogs.com/nanshouyong326/archive/2007/04/28/731172.html