CATEGORII DOCUMENTE |
Asp | Autocad | C | Dot net | Excel | Fox pro | Html | Java |
Linux | Mathcad | Photoshop | Php | Sql | Visual studio | Windows | Xml |
The return keyword has two purposes: it specifies what value a method will return (if it doesn't have a void return value) and it causes that value to be returned immediately. The test( ) method above can be rewritten to take advantage of this:
static int test2(int testval)
There's no need for else because the method will not continue after executing a return.
Politica de confidentialitate | Termeni si conditii de utilizare |
Vizualizari: 757
Importanta:
Termeni si conditii de utilizare | Contact
© SCRIGROUP 2024 . All rights reserved