阅读背景:

是否有更简洁的方法用不同的参数编写相同的方法?

来源:互联网 

I need to have multiple methods taking different parameters. Is there a cleaner way of writing those methods instead of declaring each one of them separately? I need 4 the same methods in total. Am I able to write one but let it decide what parameters are passed? Or do I have to end up copying and pasting first one 3 times and changing the parameters. Here are 2 of themI need to have multiple methods taking differen




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: