Having one request object as a Method Signature parameter, which constitute all the required parameters

后端 未结 3 948
温柔的废话
温柔的废话 2021-01-19 04:31

A method signature is part of the method declaration. It is the combination of the method name and the parameter list.

So instead of specifying a list of parameters

3条回答
  •  鱼传尺愫
    2021-01-19 05:06

    Some answers to the question Building big, immutable objects without using constructors having long parameter lists are probably relevant here also (it doesn't really matter if you're dealing with methods or constructors, a constructor is just a special method, after all).

提交回复
热议问题