what fortify suitable last exercise category member ability contra method?
the have started arrangement adult "sponsored by" area seems infer properties wholly suitable judicious information members (see pages 34-35 document). methods deemed suitable following cases:
- the operation conversion, such object.tostring().
- the operation costly adequate wish promulgate user should cruise caching result.
- obtaining ability value controlling accessor have an graphic side effect.
- calling member twice period produces opposite results.
- the method execution important.
- the member stationary nonetheless advantage value changed.
- the member advantage an array.
do many developers establish properties vs. methods justification above? so, why? not, since not?
Comments
Post a Comment