Anonymous user
Conditional structures: Difference between revisions
m
copy edit - wiki link to wikipedia
m (copy edit - wiki link to wikipedia) |
|||
Line 946:
deusEx();
}</lang>
Java also supports [
<lang java>if(obj != null && obj.foo()){
aMethod();
Line 1,906:
results=dispatcher[x]()
This can be particularly handy when using [
In general a dispatch table or class/object abstraction (using dynamic method over-rides) is considered preferable to chains of ''if ... elif ... elif ...'' in Python programming.
|