What is the difference between a return and a return()?
[ October 19, 2004: Message edited by: Parka Teoh ]
Do you have a parka?<br /> <br /><a href="http://sg.geocities.com/inschooool" target="_blank" rel="nofollow">Visit my homepage</a> | <a href="http://parka.deviantart.com/" target="_blank" rel="nofollow">Parka Deviantart gallery</a>
posted 11 years ago
return returns the result of an expression. An expression can be enclosed in a pair of redundant parentheses.
So you could write if you want.
But if your method's return type is void you cannot write return (); - it must be just return; [ October 19, 2004: Message edited by: Barry Gaunt ]