Example:
private void doThis()
{
return doSomeWork(this.data);
}
private void doThis(data)
{
return doSomeWork(data);
}
The first option is related to the value in this date, while the second option avoids this connection. I feel that the second option is always better. This contributes to free connection in the classroom. Access to the data of the global class, perforce, seems to be poor. Obviously, at this point, the data of this class must be obtained directly. However, if access to global class data can be eliminated by passing parameters, it seems that this is always preferable.
The second example has the advantage of working with any data of the corresponding type, while the first is connected with working with data of a simple class. Even if you don't need extra flexibility, it seems nice to leave it as an option.
, . ? , - .