What is the effect of some code like this:
public class Class1 {public Object property 1 {set {// Check something irreversible, and empty / throw exception is not satisfied / / some more complicated logic // return value}}}
It would be argued that if you are making excessive arguments that take a great duration, and / or side effects which are logical The sector does not flow from setting the property, you're going to have a pretty complex class design.
The methods traditionally indicate that an action is being done with the result, not the qualities when you can certainly argue on them, then whatever you are trying to do, It can be very wrong about that, which specifies the price as opposed to an operation.
Finally, it all depends on what "some more complex logic" means.
Comments
Post a Comment