T
Tom Anderson
Lew a écrit :
Do you think having an overrided method with return a constant Point object
worth it ?
Yes.
Don't you think it makes the original method harder to read ?
No. It makes it easier.
tom
Lew a écrit :
Do you think having an overrided method with return a constant Point object
worth it ?
Yes.
Don't you think it makes the original method harder to read ?
On the other hand, it requires a better knowledge of the internals when
a bug a seen, since the program doesn't blow up compeltely.
Robert said:Hi,
id' like to share with you a design view i've learned since i work. When
i have to deal with nulls, i don't throw an IllegalArguementException
any more, i just return a default value (or void). It gives better
robustness to the program i think.
On the other hand, it requires a better knowledge of the internals when
a bug a seen, since the program doesn't blow up compeltely.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.