A server class you are using needs an additional method, but you can’t modify the class.
Create a method in the client class with an instance of the server class as its first argument.
转载于:https://www.cnblogs.com/nanshouyong326/archive/2007/04/28/731171.html