Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
explanation with a simple example
In short, if you have methods that take several parameters as input, and some kind of validation is needed for the parameters, then it is more convenient to create a class that encapsulates all this goodness in itself, and the methods will accept an instance of this class and take values from there without worrying about their validity.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question